XF 1.4 nginx upload attachments issue

rizx

Member
Hello,

I'm trying to attach a png file to a post but I see this error on nginx log:

39.43.11.10 - filox [20/Jan/2015:14:47:17 +0100] "POST /attachments/do-upload.json?hash=63bee5cce7ccfa82063a80b912a6a7f3&content_type=post HTTP/1.1" 403 1471 "https://url" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36

It looks like a forbidden resource.
Does anybody know how to allow upload attachment with nginx?

Thank you.
 
Last edited:
Is that error.log or access.log?

If you use standard nginx conf you should not have any problem, unless you have an non-standard internal_data location.
 
it's access.log.
It's weird: from this pc I tried to upload a pdf and works fine.
Yesterday I tried from another pc with jpeg file and didn't work.
Maybe it's something related to file extension allowed?
My internal_data is standard


location ~ /(internal_data|library) {
internal;
}

I have to double check the client behavior and the file extension allowed.

Thank you.
 
Does it work if you disable the Flash uploader? How about if you disable JS entirely and use the really basic uploader? If not, what does the really basic uploader show as the page response?
 
Top Bottom