-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to upload file via https://api.nitrado.net/services/:id/gameservers/file_server/upload #24
Comments
Hey @Shrimpey304, could you provide us with any details on what exactly is going wrong? Any response codes or bodies are highly appreciated. It would also help if you could tell me what headers are included in Besides that I don't notice anything specific that's wrong here. |
Hello @N-o-X These are the headers being used in the calls, it sets the token from the fileserver to the "token" dict. `
` These are the responses im getting from all the calls, including downloading the banfile content beforehand which works fine. ive modified the banfiles content by adding the gamertags i want to ban at the end, then pass that as the banlistContent parameter. It gives back created and ok when calling the upload endpoint. ` calls to the download api endpoint #downloads banfile from fileserver #modifies the banlist content in between these requests #calls upload endpoint -- first call to makeRequest() in the function above #should upload file to fileserver, but simply does not upload the file. -- second call to makeRequest() in the function above ` We have tried using different content types and header layouts, but all result either in a Bad request error or a 200 OK with the same n, but when we look in the Nitrado WebInterface it has not updated anything from the banlist. let me know if you need any more info on the program. (excuse the formatting of the message) |
We have found out the upload endpoint is working as we do see the banfile's filesize change when we list the directory. Only after a few seconds its being reset to the old banlist, and it never updates in the webinterface. Is there something we are missing on that end? |
I have been trying to upload a ban.txt file via the upload endpoint, which gives me back a fileserver link and token. I seem to be unable to find out what this url expects from me, any reachout to support just sends me to the documentation which is lacking any usefull info and/or out of date. I would like to know what i have to do to actually upload the file. I will provide my function (python) below for added info.
`
The text was updated successfully, but these errors were encountered: