I am using Google Cloud Storage to upload simple MP4 files named 1.mp4, 2.mp4, 3.mp4, etc. However, some of the public URLs generated for these files contain % characters, which I know are usually added when there are unallowed special characters in the file names.
I've checked several possibilities:
The filenames do not have hidden or trailing spaces.
The bucket or folder names do not contain any special characters.
There are no visible or invisible characters in the filenames.
The client tool I used for uploading does not apply any special encoding.
I tested with different filenames, and the issue still persists.
Despite checking all of these options, I still don’t understand the reason for this problem. Can you help me figure it out?
Hi @ygl,
Welcome to Google Cloud Community!
The % sign in your Google Cloud Storage public URLs looks like it’s due to percent encoding. This occurs when special or non-ASCII characters, which may not be visible, are contained in the filename.
Solution:
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.