Wednesday, 29 May 2024

DeltaQ.RTB - Update 23

Huh, weird. So, I hadn't actually read B2's documentation on what constitute valid filenames. It's pretty straightforward, though:

You set a file name when you upload a file. After a file is uploaded, you cannot change this name. Names should be a UTF-8 string up to 1024 bytes with the following exceptions: Character codes below 32 are not allowed. DEL characters (127) are not allowed. Backslashes are not allowed. File names cannot start with /, end with /, or contain //.

Thing is, without having read this, I just blithely started uploading files whose names are "rooted" paths -- i.e., that start with '/'. And it worked.

But now I'm encountering two files that seem to be being rejected because of their filenames. One of them contains a comma, the other one contains square brackets. Per the documentation, these should be perfectly valid filenames. What gives? 🤔

No comments:

Post a Comment