Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: AddAttachment, SP2007, FileUpload

$
0
0
Copied from: https://spservices.codeplex.com/workitem/10232
Reported on: Today at 5:08 AM
Reported by: Shaolino



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

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>