mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 21:35:58 +03:00
[GH-ISSUE #481] Content-Type set to application/octet-stream during recursive copy #268
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cowmix88 on GitHub (Oct 10, 2016).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/481
I'm moving some javascript files from some nested folders onto an s3fs mount. If I don't use the recursive flag "-r" then the files have the Content-Type marked correctly was "text/javascript" but as soon as I use recursive flag to also copy over the nested folders and their files all files get marked as application/octet-stream.
@cowmix88 commented on GitHub (Oct 10, 2016):
Ah I found the issue it looks like its because these files are actually links instead of the actual file. S3Fs looks up the content-type of the link itself instead of the target file resulting in the wrong Content-Type. Is there a way to make S3FS use the content type of the link target?
@ggtakec commented on GitHub (May 5, 2017):
@cowmix88 I'm very sorry for late my reply.
The content type of the symbolic link is application/octet-stream.
If you want to change the content-type for this symbolic link, specifying the ahbe_conf option is the only way to do it.
Please refer to the test/sample_ahbe.conf file and describe the following contents and specify it in the ahbe_conf option.
Thus, even if the *.js is a symbolic link, the content-type will be text/javascript.
I'm closing this issue, but if you have more question, please reopen this issue.
Regards,