Naming Images - Post ID 274350

User 2851889 Photo


Registered User
2 posts

Hello,

When choosing an image and uploading it to your server upon a form submission, how can I have these images labelled or named rather than what happens like this '1452854455854455877456689.jpg'

Is it possible to have a default label naming the uploaded file for reference, or a hidden hint that can help with identifying after it is uploaded?

Thank you in advance,

Steve
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

Hi Stephen,
Are you publishing to S-Drive or another host?
If you going to S-Drive then there's nothing that can be done. If your publishing to another host you could probably find the area in the form builder files that's doing the naming and alter it. Depending on how your saving the file and what your doing with it will determine how difficult it is to all the scripts.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2851889 Photo


Registered User
2 posts

Hi Eric,
Thank you for the quick response.
I'm uploading to my own server (bluehost)
I'm also using the .php file to read it as opposed to embedding the file.

Where would I be able to find the area to alter it?

Steve
User 187934 Photo


Senior Advisor
20,181 posts
Online Now

Another thought is to use the $_SESSION variables to change the name and or location of the image after the fact.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2860387 Photo


Registered User
2 posts

Stephen,
Did you ever find the answer to this question?
I'm having the EXACT same problem right now.

I'm wanting to rename the files that are uploaded using the form to one of the other form fields. Is this possible or doable?

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.