Change the action URL of the form to process submission

  • miguelbm
    Asked on August 29, 2017 at 6:13 AM

    When I use the item upload files The following happens:

    Change the action URL of the form to process submission Image 1 Screenshot 30

    This work OK and load the image

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

    Change the action URL of the form to process submission Image 2 Screenshot 41

     

    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

     

     

    Jotform Thread 1234919 Screenshot
  • Marvih
    Replied on August 29, 2017 at 8: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.

  • miguelbm
    Replied on August 29, 2017 at 1: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..........

    Change the action URL of the form to process submission Image 1 Screenshot 20

  • David JotForm Support
    Replied on August 29, 2017 at 1: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.

  • miguelbm
    Replied on August 30, 2017 at 4: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

  • Elton Support Team Lead
    Replied on August 30, 2017 at 4: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