• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Automatically generate a link to a photo that's been uploaded?

fuzzybabybunny

Moderator<br>Digital & Video Cameras
Moderator
I'm wondering about how to make this:

User uploads a photo or a bunch of photos.

The photos are assigned a unique name, probably sequential starting from 1.jpg and based on the containing folder.

Links to the photo are automatically generated and put on display after upload so the user can just copy and paste and share the photo.
 
when the photo is uploaded, store its path and info in the db
on the page you want to generate links on, just query the db and build the links from the data
 
ok, i didn't read your entire post - sorry

if you can handle the uploading, you can handle the link generation 🙂
after you move the uploaded file and rename it, just slap it in a text field with the complete uri for the user to copy
 
I would recommend that you get the simplest form of this working first and then 'upgrade' your components later. Using a java applet or flash app to handle client side uploading is probably a few steps away from where you are (based on your prior postings). I would suggest starting with a simple html form to handle file uploads. After you get all your server side code working to tag and store all the uploads and misc information, then look into making it look nicer or add more advance features.

You still sound unsure about the language and databases. Getting those issues settled will help you and help us to give you more specific answers. www.w3schools.com has a section on php and uploading files if that's what you're interested in.

Just constructive comments.
 
Back
Top