Upload text to document library and redirect to edit page

Mar 15, 2011 at 3:18 PM

Hi,

I have the following requirement:

I have create a Flash application that is embedded in a Sharepoint Application Page.  In the Flash application I have to upload text (I cannot create a file on the client side without prompting the user, so I just have plain text to upload) to a document library of the user's choise.  I can use SPServices through the browsers JavaScript.

When the text is uploaded (as a .url file), I have to redirect to the Edit form (as specified in the content type of the library)

How can I upload text as a file to a Document library using SPServices from JavaScript?

How can I then redirect to that library item in edit mode?

Kind regards,

 

Karel

Coordinator
Mar 16, 2011 at 4:58 PM

Karel:

File uploading isn't something that I've tried to tackle. The Web Services don't support it well, and you'll need to do base64 conversions of the byte stream. The redirect piece is easy, by setting the location.href.

M.