Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am trying to create a custom control for updating a List on a Sharepoint site that only allows Sandbox Solutions to be added.

I've read a few threads on uploading attachments, but they all seem to involve doing it from the server machine (Using a file stream to read a local file).

Is it not possible to use Javascript or something to pass a file through to a Sandbox'd webpart??

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Not particularly, as the code you'll need to execute in the sandbox will be running in the sandboxed process, and this doesn't allow access to System.IO, which you will need in order to create a FileStream which represents the file you're uploading and is written to a new item in the list.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.