I would like to create a blank page with an upload button.

I want visitors to be able to upload a file to my documentlibrary. But i dont want visitors to have access to the files when they are uploaded.

How would i go about to create a blank page that have a "browse file" button and then a upload button. So the user can upload a file and then the file is stored in a folder that i decide.

2 Answers 2


you have build a custom solution for this. You can create an add-on with either app only permissions or with service accounts so the app will provide admin rights to upload the files and nothing else.

you can refer the complete details below:



You can create a page with JavaScript which uploads files to library:

You'll also need to create special permission level via code (CSOM/JSOM):
Can you restrict a list to add item only but not read?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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