Change the action URL of the form to process submission

  • Profile Image
    miguelbm
    Asked on August 29, 2017 at 06:13 AM

    When I use the item upload files The following happens:

    This work OK and load the image

    But if change to mi url, "Failed to load image".

     

    Why?

    I need to send in base 64 the image file to my url, or send the URL of the location of the loaded image.

    I would also like to know if it is possible to preview the image in the form

    Best regards

    Miguel benjumea

     

     

    Screenshot
  • Profile Image
    Marvih
    Answered on August 29, 2017 at 08:17 AM

    Localhost is only accessible on your local network/machine only. If you are hosting your website/image in your machine you need to access it using your IP which can be found here http://www.whatsmyip.org/ instead of using localhost.

  • Profile Image
    miguelbm
    Answered on August 29, 2017 at 01:08 PM

    Sorry for my English
    But that's not the problem. The same problem from external access

    Only work with action URL https://submit.jotformeu.com/submit/724..........

  • Profile Image
    david
    Answered on August 29, 2017 at 01:38 PM

    If you are trying to send the file uploads to your own server, that can be done using FTP.  Here is how to do so:

    https://www.jotform.com/help/177-How-to-Send-Submission-Data-File-Upload-via-FTP

    The files need to hit our servers first and then be forwarded from there.

  • Profile Image
    miguelbm
    Answered on August 30, 2017 at 04:08 AM

    Hi David
    I have configured FTP

    With the form submit action "https: //submit.jotform ...... " works ok
    But with my URL
    http://xxx.xxx.xxx.xxx/ does not work, does not load files

    Both with external access and localhost

    However the widget klouless file uploader works in both cases

    I do not know if I should configure anything else

  • Profile Image
    EltonCris
    Answered on August 30, 2017 at 04:58 AM

    JotForm's generated action URL is the most vital part of the form. Changing it to something else will not work out. We also do not recommend doing that. 

    You should probably just process the uploaded image through Webhook.

    With regards to the mentioned widget, it is loaded in a separate frame. Which means uploaded files are processed independently. As long as it is able to read the widgets meta data, the widget will work even if the action URL is changed.

    Thanks