- celtsocAsked 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?
- JotForm SupportdavidAnswered on December 10, 2015 at 04:43 PM
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.
- celtsocAnswered on December 10, 2015 at 05:45 PMPerfect, 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
- JotForm SupportdavidAnswered on December 10, 2015 at 06:49 PM
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.
- celtsocAnswered on December 15, 2015 at 08:45 PMOK thanks.
- JotForm SupportBJoannaAnswered on December 16, 2015 at 02:23 AM
On behalf of my colleague , you are welcome.
Feel free to contact us if you have any other questions.