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

feat(File Upload): Adds file upload functionality to the API #138

Merged
merged 5 commits into from
Aug 1, 2016

Conversation

kenhowardpdx
Copy link
Contributor

New files can be uploaded through the API via a POST to /api/file. Proper authorization is required. The response object will be in the following format:

{ filename: 'NameOfFileUploaded.txt', url: 'https://host/file/NameOfFileUploaded.txt' }

If a file of the same name exists the stored file will have a numbered suffix.

Example: NameOfFileUploaded.txt => NameOfFileUploaded-1.txt

Files cannot exceed 4MB in size.

New files can be uploaded through the API via a POST
to `/api/file`. Proper authorization is required. The response
object will be in the following format:
`{ filename: 'NameOfFileUploaded.txt', url: 'https://host/file/NameOfFileUploaded.txt' }`

If a file of the same name exists the stored file will have a numbered suffix.
Example: NameOfFileUploaded.txt => NameOfFileUploaded-1.txt

Files cannot exceed 4MB in size.
@kenhowardpdx
Copy link
Contributor Author

@tedbcsgpro could you please review at your leisure?

@kenhowardpdx
Copy link
Contributor Author

@tedbcsgpro I've updated the Admin app to allow the user to upload an image and place the resulting image url in the post.

@kenhowardpdx kenhowardpdx merged commit e097b24 into master Aug 1, 2016
@kenhowardpdx kenhowardpdx deleted the file-upload branch August 1, 2016 22:49
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

Successfully merging this pull request may close these issues.

None yet

1 participant