___Hello___
__The Situation:__ I've build a website to offer a custom build input form for a Sharepoint-List.
__The Used Languages:__ HTML 4.0.1, CSS, JavaScript, JQuery (1.11.0), SPServices (0.7.2), Sharepoint 2007 Basic
--> each language seperated in own files
__Tools:__ Not supported (no InfoPath, no SP-Designer)
__The Task:__ Attach a file to the last List-Item.
__Way so far:__ Works fine already to write input data type=text with UpdateListItems and New batchCMD into Sharepoint-List. --> Input Field type=file in HTML Page created to support attachment upload to the list.
__The Problem:__ AddAttachment runs clear through without adding the attachment and without throwing errors in the browser. When alerting the file input, "undefined" is the message showen.
__The Question:__ Is there a way to get the file from the HTML input field and to give it to SPServices to write it down in the SP-List? Something like a handler? I've read that the input is needed in 64Byte encoded. The attachment will be a local stored Excel file, from the users client PC. Will it still work after encoding? And is there an easy solution for handle and encode the file?
_____Thanks for your help_____
__The Situation:__ I've build a website to offer a custom build input form for a Sharepoint-List.
__The Used Languages:__ HTML 4.0.1, CSS, JavaScript, JQuery (1.11.0), SPServices (0.7.2), Sharepoint 2007 Basic
--> each language seperated in own files
__Tools:__ Not supported (no InfoPath, no SP-Designer)
__The Task:__ Attach a file to the last List-Item.
__Way so far:__ Works fine already to write input data type=text with UpdateListItems and New batchCMD into Sharepoint-List. --> Input Field type=file in HTML Page created to support attachment upload to the list.
__The Problem:__ AddAttachment runs clear through without adding the attachment and without throwing errors in the browser. When alerting the file input, "undefined" is the message showen.
__The Question:__ Is there a way to get the file from the HTML input field and to give it to SPServices to write it down in the SP-List? Something like a handler? I've read that the input is needed in 64Byte encoded. The attachment will be a local stored Excel file, from the users client PC. Will it still work after encoding? And is there an easy solution for handle and encode the file?
_____Thanks for your help_____