1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 nginx upload attachments issue

Discussion in 'Troubleshooting and Problems' started by rizx, Jan 20, 2015.

  1. rizx

    rizx Member


    I'm trying to attach a png file to a post but I see this error on nginx log: - 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: Jan 20, 2015
  2. Sheratan

    Sheratan Well-Known Member

    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.
  3. rizx

    rizx Member

    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) {

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

    Thank you.
  4. Mike

    Mike XenForo Developer Staff Member

    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?
  5. rizx

    rizx Member

    I tried again some minutes ago with a png and now it works perfectly, without changing nothing.
    Very weird..

Share This Page