-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Blank Content-Type set for uploaded assets in S3 #496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@francisli I can look into it. What should be the correct Content-Type? |
it should depend on the type of asset, right? like if it's an image, vs a video, vs a .js file. |
@dhruvdutt yes, @catarak is correct, it should depend upon the type of file being uploaded. typically, you'd install a library that has a mapping from common file extensions to mime-type to use. Not sure what's the most commonly used, here's the first search result: https://www.npmjs.com/package/mime-types You might try taking a look at the node modules shrinkwrap file and seeing if one is already installed as a dependency for another library... |
@catarak @francisli Thanks for the guidance. 👍 I went through package-lock (equivalent of shrinkwrap in npm5 and above). There are some dependencies using Also, can you also please update the debug setups in original issue post? We don't have any new file modal now. I'm confused about how or where is the option to upload assets/images. 🤔 |
to upload files, you have to 1. open the sidebar (there's a > icon to the left by the file title), then click the 'v' by 'project-folder', then click 'add file', and you can upload a file in the dropzone area. |
I get these errors when I try to upload something. I think it's because I'm missing AWS credentials. @catarak If you want to share your credentials, then please send them at dhruvdutt.jadhav@gmail.com |
you can make your own S3 bucket! the steps to set it up are in the README 😄 |
Hi wanted to repost a note from #1196 and say that the editor should not be updated to use version 0.10.2 until this has been resolved. @dhruvdutt are you still working on this? I can give it a try otherwise. I think that this deserves relatively high priority. |
@stalgiag I'm not working on this. You can go ahead and pick this up. |
Great thanks @dhruvdutt ! Anybody have any thoughts on where I might look first? Navigating the project for the first time. As of now my best guess is to add headers to |
Nature of issue?
Details about the bug:
Firefox 57.0.1/macOS 10.13.1
curl -I
on the asset url, observe that the Content-Type is blankThe text was updated successfully, but these errors were encountered: