Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Upload Controller and Route #4

Open
Shelob9 opened this issue Jul 17, 2018 · 0 comments
Open

File Upload Controller and Route #4

Shelob9 opened this issue Jul 17, 2018 · 0 comments
Assignees

Comments

@Shelob9
Copy link

Shelob9 commented Jul 17, 2018

Controller would be the same as that express app shown here.

We have a very similar Controller in Caldera Forms Pro - https://gitlab.com/caldera-labs/caldera-forms-pro-app/blob/master/app/Http/Controllers/Image.php

Requirements

Route

Controller

  • Create new File Model
  • Upload to s3
  • Return:
    • Body - file ID (Model primary key) and CDN URL to GET file.
    • Headers - status code indicating record created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants