XF 2.3 Problems with file upload after upgrade

uab9876

Member
I've just upgraded to the latest forum software from v1 and most things are working but I can't upload files in posts.

When I try the image just shows 0% upload. I assume there are some permissions that are not right somewhere but the data directories are writable.
 

Attachments

  • uploadIssue.webp
    uploadIssue.webp
    4.3 KB · Views: 7
Further to this it looks like its a not an issue for all users.
Could there have been some permission changes somewhere?

[Updated]

It worked from someones phone then after trying from a PC the upload failed from a phone again. Weird behaviour and I'm not sure where to look,

[Adding more]
Firefox console error
Content-Security-Policy: The page’s settings blocked the loading of a resource (img-src) at blob:https://www.xxx.ixxx/70fa76ed-ee65-405e-af26-5b99f0ef87da because it violates the following directive: “default-src https: data: 'unsafe-inline' 'unsafe-eval'”
 
Last edited:
Further to this it looks like its a not an issue for all users.
Could there have been some permission changes somewhere?

[Updated]

It worked from someones phone then after trying from a PC the upload failed from a phone again. Weird behaviour and I'm not sure where to look,

[Adding more]
Firefox console error
You’re dealing with a new image type webp it’s supported on most current browsers. Go to ACP > settings > attachments and turn off Optimize images.
 
But your test image is webp try another type and see if it fixes the problem.
I've tried png and jpg neither worked. I'm thinking the console error is suggesting that it may be a webserver issue it seems to be suggesting its a some sort of policy error (I will check my webserver setup).

Refused to load the image 'blob:https://www.xxx.xxx/086daac9-64d4-4cdb-b753-55413adf10a2' because it violates the following Content Security Policy directive: "default-src https: data: 'unsafe-inline' 'unsafe-eval'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.
 
Back
Top Bottom