Closed cristianpenaarriero closed 1 year ago
Hey, this seems to a be a bug where validation against doing that is missing, I'll fix that soon.
For the meanwhile, here's a manual fix:
/
in it's name.id
attribute of the file you found, and your new desired file name, and replace them accordingly in this script:const token = "<PUT_YOUR_TOKEN_HERE>";
const fileId ="<PUT_YOUR_FILE_ID_HERE>";
const newFileName = "<PUT_YOUR_NEW_FILE_NAME_HERE>";
var myHeaders = new Headers();
myHeaders.append("Accept", "*/*");
myHeaders.append("Accept-Language", "he");
myHeaders.append("Connection", "keep-alive");
myHeaders.append("Origin", "https://disboxapp.github.io");
myHeaders.append("Referer", "https://disboxapp.github.io/");
myHeaders.append("Sec-Fetch-Dest", "empty");
myHeaders.append("Sec-Fetch-Mode", "cors");
myHeaders.append("Sec-Fetch-Site", "cross-site");
myHeaders.append("sec-ch-ua", "\"Not.A/Brand\";v=\"8\", \"Chromium\";v=\"114\", \"Google Chrome\";v=\"114\"");
myHeaders.append("sec-ch-ua-mobile", "?0");
myHeaders.append("sec-ch-ua-platform", "\"Windows\"");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"name": newFileName
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch(`https://disboxserver.azurewebsites.net/files/update/${token}/${fileId}`, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
This makes an API call to rename your file :)
Sorry for the trouble and let me know if you need more help 😄
After creating a folder with a / character, the UI just becomes blank before the files load.
How can I access the files again?