Reputation: 41338
When I upload a set of files to a bucket on Google Storage, they are automatically assigned file types ("text/html", "application/json", etc.). But when I do a directory upload via the developer console, the files in the directory all get type "application/octet-stream". How do I get Google Storage to automatically assign file types to the contents of an uploaded directory?
Upvotes: 0
Views: 229
Reputation: 481
As pointed out in your response above,
This is likely a bug in the developer console. This problem comes from adding a directory via drag-and-drop. Uploading a directory via the "Upload Folder" button fixes this problem (it associates the correct file types with the files in the directory). this does seem a bug
This does seem to be a bug. All Google Cloud Platform bugs should be reported on the public issue tracker. You might want to file a bug at Public Issue Tracker so that this can be further investigated.
Upvotes: 0
Reputation: 41338
This is likely a bug in the developer console. This problem comes from adding a directory via drag-and-drop. Uploading a directory via the "Upload Folder" button fixes this problem (it associates the correct file types with the files in the directory).
Upvotes: 1