POST form data to page

  • Profile Image
    tim.nijland1
    Asked on February 22, 2021 at 03:44 PM

    Hi Jotform,

    I have a custom page with POST data, my question is, how can i get the data from the pictures that I uploaded? Could you please help me:

    $splashicon = mysqli_real_escape_string($link, $_REQUEST['splashicon']['0']); $splashicon = $_FILES['splashicon']['tmp_name'][0]; $splashicon = file_get_contents($splashicon); $splashicon = base64_encode($splashicon);


    In the JotFrom POST test page it's showing up the filename, but is it just the filename? Or is the data included in a layer under it?


    Please help :)

  • Profile Image
    jherwin
    Answered on February 22, 2021 at 09:09 PM

    Please check this guide for more details on how to send data via POST: https://www.jotform.com/help/213-send-submission-data-via-post-method-and-thank-you-settings

  • Profile Image
    Carlos_C
    Answered on February 23, 2021 at 06:36 PM

    Unfortunately, it is not possible to send or update the files uploaded using API. However, you may get the download links from the API using the Form ID submissions request.

    https://api.jotform.com/docs/#form-id-submissions

    If you are using the file upload field, you may also generate the file uploaded link in the format below:

    https://www.jotform.com/uploads/tim.nijland1/FORM_ID/Submission_ID/FileName.ExtName

    Thanks!