Skip to content

carlevison/cld-signed-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cld-signed-upload

This code demonstrates two ways of performing a signed upload to Cloudinary from the browser, using a server to create the signature. One uses Cloudinary's upload widget, the other uses a standard HTML form.

  • Files specific to signed upload using Cloudinary's upload widget:
    • modules/signupload.js
    • public/uploadwidget.html
    • public/js/upload-client.js
    • routes/signupload.js
  • Files specific to signed upload using a standard HTML form:
    • modules/signuploadform.js
    • public/uploadform.html
    • public/js/upload-client-form.js
    • routes/signuploadform.js

Setup instructions

  1. Install all dependencies from the top level:

    npm install

  2. Open signed-uploads/public/js/config.js

  3. Set cloud_name, api_key and api_secret with the corresponding account details from your dashboard

  4. Run the app to start the server:

    node signed-uploads/app.js

    The response should be:

    Server is up on http://localhost:3000

  5. Open http://localhost:3000 in a browser.

About

Demonstration of a signed upload from the browser, using a server to create the signature.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published