JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How to access an uploaded image file on my websiteAsked by celtsoc on December 10, 2015 at 03:34 PM
I'm using a file upload field on my form which works great. The contents of the form are added to a mySQL form and I have a server side script that generates a web page from the db info. I can't figure out how to display the uploaded image file in the web page. Are they uploaded to jotform somewhere and if so, how can I get hold of the url? Is there a way I can have them uploaded to my website instead?
Unfortunately, the download link is not available from the post data. However, you can manually create the download link based from the post data provided to your page
For example, you can build the link and print it by following this:
$linkfile = "http://www.jotform.com/uploads/celtsoc/". $formID ."/". $submission_id ."/". $file;
So assuming that you have these following details:
$formID = 31112954391349
$submission_id = 233031863471974555
$file = Analytics Review Website.pdf
It will then form this URL:
http://www.jotform.com/uploads/celtsoc/31112954391349/233031863471974555/Analytics Review Website.pdf
Now, if you want it to be clickable, simply do this:
<a target="_blank" href="<? echo $linkfile; ?>"> <?php echo $linkfile; ?> </a>
I'm not sure if you get the idea of what I'm explaining, but if you have further questions, just let us know and we will be happy to help.
Perfect, that's what I wanted to know.
So the files are hosted on your servers. Is there a limit on the
number/size/disk space allocated for files? The files involved will only
be required for a couple of weeks and I can write a script to delete them
from your server when no longer required, but do I have delete permission
Here is more information on file upload sizes and limits:
Total storage is limited based on subscription level, you can see what each is allowed in our pricing page:
Deleting submissions with files attached will clear up more space.
On behalf of my colleague , you are welcome.
Feel free to contact us if you have any other questions.