I’ve created an example of simple image gallery using file management API by Uploadcare. Their API can also be used for docs/videos/other any other filetypes.
It’s my first Glitch experience, hope you’ll find it useful, would be glad to hear any thoughts or feature requests.
That is indeed really cool @ZNick1982! I was wondering if it’s possible to add a way to remove images that have been uploaded to an Uploadcare gallery. Then that way unecessary or spam images can be removed if needed.
If you have the time I also need help adding it to my website. I copied your code from the page source, css/style.css, and js/main.js exactly and when I upload an image it won’t appear in the gallery. I’m assuming it may be I need my own UPLOADCARE_PUBLIC_KEY, and if so, how do I do that?
I am very exited that you interested in my demo.
Sure, I will help you create your own gallery.
Here is my step by step guide:
First you need to sign in (or register, its free) to Uploadcare.
Press “New project” and create your project
On the project page press “API Keys” link
Here you can get your public and private keys.
Next thing you need is update UPLOADCARE_PUBLIC_KEY and UPLOADCARE_PRIVATE_KEY variables in the code.
There are only two files to update:
/views/index.html on line 11
And that’s it.
Regarding deleting the files.
I think you’re right I will update this possibility just in case if visitor will upload some other images by mistake or something. Because now all uploaded files are shared with all page visitors.