I would like to upload 20000+ photos to OneDrive through web. But when I try to upload folder or files, OneDrive is stuck and no file is uploaded.
Is there any limit on how much files I can upload?
OneDrive has an upload limit of 1000 individual files per session, I think user1563721 has come to realize this and has started uploading his/her photos one thousand at a time.
OneDrive chose the thousand limit because it is a limit that will work on most browsers.
As suggested before, if you want to upload 20,000 files at once, try using a desktop sync client rather than a browser, try --> OneDrive Desktop App
I do not believe there is an inherent limit to the number of files you can upload. I uploaded my entire phone directory to oneDrive without a hitch before.
However, since you are using the web interface instead of an application, this could be the problem with how oneDrive is implemented online or the browser in question.
If you are simply looking to archive the files, try archiving them in .zip or .rar format. This way oneDrive has to only handle one large file. In many cases, this makes the transfer quicker too.
I haven't used OneDrive myself but this is what they say in its website
There's a 10-gigabyte (GB) file size limit for each file that's uploaded to the OneDrive for Business library.
edit In the past people had limitation of 20.000 files, but this limitation was removed by Microsoft. I would suggest to try installing the OneDrive client here since you are using the web interface.