What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

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.


  • Profile Image

    How to access an uploaded image file on my website

    Asked 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?

    Thanks,

    Pete

    image file uploaded image how upload field JotForm file upload field thanks
  • Profile Image
    JotForm Support

    Answered by david on December 10, 2015 at 04:43 PM

    Hi,

    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.

  • Profile Image

    Answered by celtsoc on December 10, 2015 at 05:45 PM
    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
    ...
  • Profile Image
    JotForm Support

    Answered by david on December 10, 2015 at 06:49 PM

    Here is more information on file upload sizes and limits:

    http://www.jotform.com/help/33-Changing-the-Upload-Size-Limit

    Total storage is limited based on subscription level, you can see what each is allowed in our pricing page:

    https://secure.jotform.com/pricing

    Deleting submissions with files attached will clear up more space.

  • Profile Image

    Answered by celtsoc on December 15, 2015 at 08:45 PM
    OK thanks.
    ...
  • Profile Image
    JotForm Support

    Answered by BJoanna 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.