question

FernandoVargas-4976 avatar image
0 Votes"
FernandoVargas-4976 asked FernandoVargas-4976 commented

Posting to /_layouts/15/upload.aspx is not working on SP Subscription Edition

In SharePoint 2013 it was possible to post data (files) to /_layouts/15/upload.aspx?IsAjax=1&List={GUID}&RootFolder=/Sites/Site-A/LibraryName as a means to uploading files to a library.
Why is it not working anymore?

sharepoint-devoffice-sharepoint-server-development
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I suppose I should have been more detailed in setting up the scenario:

I have a page MyUpload.aspx page with a File control and a button to "Upload". When the upload button is clicked, the File control's files are added to a Form Data object and posted to SharePoint's /_layouts/15/upload.aspx with the IsAjax=1 parameters which causes the files to be uploaded automatically, without user interaction or UI.

From my testing, SP Subscription Edition (SE) the IsAjax parameter is not triggering the file upload. The response content is the page itself instead of the upload complete or progress.

So, adding IsAjax=1 in the UI is not the way to test this as it would not work.

0 Votes 0 ·

1 Answer

TongZhangMSFT-7548 avatar image
0 Votes"
TongZhangMSFT-7548 answered FernandoVargas-4976 commented

Hi @FernandoVargas-4976 ,
According to my testing, please try to change the "IsAjax=1" as "IsAjax=2",it can upload files.

Here is an example you can refer to:

     /_layouts/15/Upload.aspx?IsAjax=2&List={GUID}&RootFolder=/sites/site/Library-Name

183163-image.png



If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





image.png (32.0 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @FernandoVargas-4976,
I am checking to see how things are going there on this issue. If you have any questions, please feel free to let me know.
Looking forward to your reply. Have a lucky day!

0 Votes 0 ·

Thank you for looking into this.
I have added more detail to the scenario which affects how you are testing.

0 Votes 0 ·

Hi @FernandoVargas-4976,
Per my research, no documentation has been found to explain why /_layouts/15/upload.aspx is not working on SharePoint Subscription Edition.
You can try to use the example for uploading files, hope it can help you, thank you for your understanding and support.

190472-image.png
190481-image.png


0 Votes 0 ·
upload-file.txt (2.3 KiB)
image.png (2.6 KiB)
image.png (3.8 KiB)
Show more comments