Skip to main content
Participating Frequently
April 13, 2017
Question

submitForm fails for large PDF

  • April 13, 2017
  • 1 reply
  • 1170 views

We are using the JavaScript submitForm method to submit the form to a specified URL. The reason we do this is to send the PDF to our server. This works fine for most PDFs but larger ones are failing without any error given. Here is what the code looks like.

var return_msg = submitForm({ cURL: "urlToPost", cSubmitAs: "PDF"});

app.alert(return_msg); <- returns true

Is there any way to use submitForm for large files?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
April 13, 2017

I think the problem is most likely with the server, not the client. What are you using to receive the file on the back-end?

jojoshuaAuthor
Participating Frequently
April 13, 2017

My wish is that it is the server, but can't seem to find issue with the server configuration.  It is asp.net WebAPI service that it submits to. We setup extended tracing and found that no requests were even hitting the server. Also made sure the request thresholds could hold up to 2gb files.

try67
Community Expert
Community Expert
April 13, 2017

I'm not too familiar with asp.net but I would also suggest you look into the max upload file size parameter. I have had similar problems with PHP-based services in the past, so I'm guessing it's a similar situation with ASP.