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

Support for S3 or cloudinary for images #62

Closed
devangpaliwal opened this issue Jul 15, 2014 · 2 comments
Closed

Support for S3 or cloudinary for images #62

devangpaliwal opened this issue Jul 15, 2014 · 2 comments
Labels

Comments

@devangpaliwal
Copy link

Hi,

Do we have support for uploading images to S3 / cloudinary from the upload type control.

I want to upload images to my S3 account.

Thoughts??

Thanks for creating such a wonderful module.

@simov
Copy link
Owner

simov commented Jul 15, 2014

You can upload your files inside the postSave callback. Take a look at the so called events here

Below this line is an example of sending some request after saving the record.

You should use node-inspector to see what's inside the args parameter. Somewhere there should be the name of your file (because it can get renamed if there is a file with the same name in you upload directory). The next step is to read the file like you usually do in node, and send it to your server.

@simov simov added the question label Jul 15, 2014
@simov
Copy link
Owner

simov commented Jul 27, 2014

@devangpaliwal just improved the events documentation

I added an example of uploading to cloudinary.com, and you can try it out here

@simov simov closed this as completed Jul 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants