-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Change of Content-Type in S3Adapter #628
Comments
can you dump the response headers please? |
We actually use mime-type magic to reply with a nice and proper content-type, based on the path extension of the filename. |
@flovilmart Is this what you want?
|
The above file's filename is ustrobot.jpg and I uploaded it via the Parse Javascript SDK as the following: |
Yup, looks like we are overriding the content-type for some reason on replies on files. Sounds like a bug. |
Will dive deep early tomorrow... |
@nlutsenko I'm on it! |
@mchun should be fixed, try the master or wait for the next release! |
Yes, working properly now. You are awesome @flovilmart, thanks a lot! |
🎉 |
um.....i found something... |
Did you set the directAccess option? |
Yes. I did not change my code when installing the latest master. |
And its strange that I can view the photo via the path http://localhost:1337/parse/files/myAppId/6460437e918fe2719c5dbbd74474bd6c_1.jpg |
these are not the correct steps: you should update
then run npm install. |
Cant install the master from github, but installed 2.1.4 anyway I followed the parse wiki on how to configure the s3 adapter, everythings work in 2.1.3 but not 2.1.4... :( |
Is there any way to change the content-type when using S3Adapter? Images are all being downloaded instead of being viewed.
The text was updated successfully, but these errors were encountered: