Upload PDF on webpage

John

New Member
#1
Hi All,

I need to attach PDF file on web page created through HTML/Web Speed. Can anybody please suggest how can this be achieved? Thank You.
 

John

New Member
#3
Thanks for reply Marco.

I am trying below code but it is not working to attach PDF file on webpage. Could you please advice how can I achieve this? Thank You

HTML Code
=======
<html>
<head>
<script src="js/xx_fileupload.js"> </script>
<script src="/js/xx_ajaxcall.js"></script>
</head>
<body>
<input type=file name="browse" id="myfile"> </br>
<button onclick='saveToJs();'>Upload</button>
</body>

</html>

============ .js File====================
function saveToJs()
{
var files = document.getElementById("myfile").files;
getAsText1(files[0]);

} /*
 

John

New Member
#5
Hello Marco,

I referred the links provided by you but getting below errors. Could you please help how can this fixed? Thanks in advance.


WS -- (Procedure: 'xxaccsrch.r' Line:933) inNumPages= 76
WS -- (Procedure: 'get-binary-data web/objects/web-util.p' Line:1200) Form does not contain a field named filename or field is not of type 'file'. (12597)
WS -- Agent failed to receive data. Error -2 Invalid Header Read (15634)
WS -- WTA: npp_send() failed while sending terminate message! Error: 0. (6397)
WS -- WTA: Failed to notify broker of state information! (6400)

Regards
 

Cecil

19+ years progress programming and still learning.
#6
Hello Marco,

I referred the links provided by you but getting below errors. Could you please help how can this fixed? Thanks in advance.


WS -- (Procedure: 'xxaccsrch.r' Line:933) inNumPages= 76
WS -- (Procedure: 'get-binary-data web/objects/web-util.p' Line:1200) Form does not contain a field named filename or field is not of type 'file'. (12597)
WS -- Agent failed to receive data. Error -2 Invalid Header Read (15634)
WS -- WTA: npp_send() failed while sending terminate message! Error: 0. (6397)
WS -- WTA: Failed to notify broker of state information! (6400)

Regards
Show us your rendered HTML code.
 
Top