You are viewing limited content. For full access, please sign in.

Question

Question

Error LFF4112-PdfNetworkError When Submitting Form

asked on June 15, 2018

Hi all,

 

In my form I added a html's section and an iframe inside.

This is my code.

<iframe id="frame1" class="frame1" src="" width="100%" height="420px">
This browser does not support PDFs. Please contact your Administrator.
</iframe>

 

The source is managed by javascript

  var source = "http://localhost/Forms/PDFAttachment/file.pdf" ;
$('.frame1').remove();
   	$('#q23').append("<iframe src='"+source+"' width=100% height=400px name='frame1' id='frame1'class='frame1'></iframe>");

 

And it's working.

 

My bug is about the save to repository.

If my source (in javascript) is a constant, my form is saved.

 var source = "http://localhost/Forms/PDFAttachment/file.pdf" ;

 

But if my source is a variable, I have the error LFF4112-PdfNetworkError  and my form is not saved to repository.

var file = $("#q26 input").val();
 var source = "http://localhost/Forms/PDFAttachment/" + file ;

 

Is it a bug or did I do something wrong?

 

Thanks in advance.

Regards

0 0

Replies

replied on June 15, 2018

Hi all,

 

I found something else... if my file is a jpg, I don't have trouble (variable or constant).

0 0
replied on June 15, 2018
  1. If you set a breakpoint in the browser debugging tools, do you see a difference between the two cases?
  2. "localhost" is not going to work in general, you need the name of the forms server.
  3. I don't understand how the file the user selected in the browser is supposed to be served up by the Forms server.  It's uploaded but the file selection input is supposed to stay?
0 0
replied on June 18, 2018

Hi Brian,

 

1. I don't know how to set a breakpoint in the browser debugging tools. I'm going to search and back to you asap.

2. Yeah I know "localhost" is not pretty good in general. This is only for us. Anyway I tried with the server's name too and get the same result.

3. The file is not for uploading or downloading. It's only for get infos from the PDF before submitting the form.

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.