Error 400: No file selected
Posted: Sat Apr 10, 2021 10:05 am
I'm trying to upload an update to a large mod (141 Mb) to the mod portal. When the file upload progress bar is complete, there is a medium-sized pause, followed by an error message I've never seen before:
My home broadband is ADSL with a very poor upload speed so it takes considerable time to upload this file - around ten minutes, and it often times out before the upload is complete. So I also tried three times on my mobile phone contract, blowing a significant chunk of my monthly allowance on it. I finally tried logging in to a remote university server that I have access to, downloading the uncompressed mod files from a GDrive backup to that computer, zipping them, and uploading them from there (which took seconds because it's on a very high capacity backbone). In all three cases I get this "Error 400" on completion. So that's three different machines/platforms/browsers/ISPs:
- Windows 10 Education, Chrome 89.0.4389.114
- Android, Bromite (Chrome fork)
- Windows Server 2019 via Citrix, Firefox 78.6.0
all with the same result.
I suspect that this message is trying to tell me there is something wrong with one of the zipped files. However the mod loads up and plays perfectly well in Factorio. The changelog was my first thought since that is well known to be extremely finicky, but it displays properly in-game and I can't find anything else wrong with its encoding. Only two or three other files have changed since the last upload, all LUA text files. The file is the same size or smaller than previous uploads.
If someone can tell me what this error really means, I can try and fix it. I can't attach the mod here for obvious reasons.
My home broadband is ADSL with a very poor upload speed so it takes considerable time to upload this file - around ten minutes, and it often times out before the upload is complete. So I also tried three times on my mobile phone contract, blowing a significant chunk of my monthly allowance on it. I finally tried logging in to a remote university server that I have access to, downloading the uncompressed mod files from a GDrive backup to that computer, zipping them, and uploading them from there (which took seconds because it's on a very high capacity backbone). In all three cases I get this "Error 400" on completion. So that's three different machines/platforms/browsers/ISPs:
- Windows 10 Education, Chrome 89.0.4389.114
- Android, Bromite (Chrome fork)
- Windows Server 2019 via Citrix, Firefox 78.6.0
all with the same result.
I suspect that this message is trying to tell me there is something wrong with one of the zipped files. However the mod loads up and plays perfectly well in Factorio. The changelog was my first thought since that is well known to be extremely finicky, but it displays properly in-game and I can't find anything else wrong with its encoding. Only two or three other files have changed since the last upload, all LUA text files. The file is the same size or smaller than previous uploads.
If someone can tell me what this error really means, I can try and fix it. I can't attach the mod here for obvious reasons.