SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

Your Answer


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.