spring / upq

extracts metadata of game and map files of the spring engine
https://springfiles.springrts.com/
GNU General Public License v3.0
2 stars 5 forks source link

Seems we have a new problem with form.html #83

Closed icexuick closed 2 years ago

icexuick commented 2 years ago

When uploading new (map) file to https://springfiles.springrts.com/upload/ we now get this:

Traceback (most recent call last):
  File "/home/springfiles/upq/www/upload/index.py", line 104, in <module>
    ShowForm({"messages": "<pre>" + html.escape(msgs) + "</pre>"})
  File "/home/springfiles/upq/www/upload/index.py", line 13, in ShowForm
    with open("form.html", "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'form.html'
abma commented 2 years ago

try again please. i guess your uploaded file is broken and triggers some error which makes it fail like this.

the change adds some wrapper which should correctly cwd after parsing...