You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the front end, I get the upload thing URL (since disablePayloadAccessControl is set to true), and images load correctly. However, the admin panel attempts to load the images from the local disk and errors out:
[01:43:59] ERROR: File OFFICE_1747504484507-1-300x300.png for collection media is missing on the disk. Expected path: /Users/jaidencapra/tymo-website/tymo-payload-site/public/media/OFFICE_1747504484507-1-300x300.png
GET /api/media/file/OFFICE_1747504484507-1-300x300.png 500 in 128ms
I tried adjusting and commenting out the staticDir property on the Media collection's upload config to no luck. It was set to staticDir: path.resolve(dirname, '../../public/media') prior to the issue starting - it seems to have no effect once overridden by the uploadthingStorage plugin.
Unfortunately, I'm having trouble reproducing the error. The issue has only popped up recently, seemingly unrelated to any recent changes. uploadThing with disablePayloadAccessControl was working fine for weeks before this issue popped up. I'll continue trying to reproduce, but any troubleshooting tips would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have set up uploadThing with the following configuration:
On the front end, I get the upload thing URL (since disablePayloadAccessControl is set to true), and images load correctly. However, the admin panel attempts to load the images from the local disk and errors out:
I tried adjusting and commenting out the staticDir property on the Media collection's upload config to no luck. It was set to
staticDir: path.resolve(dirname, '../../public/media')
prior to the issue starting - it seems to have no effect once overridden by the uploadthingStorage plugin.Unfortunately, I'm having trouble reproducing the error. The issue has only popped up recently, seemingly unrelated to any recent changes. uploadThing with disablePayloadAccessControl was working fine for weeks before this issue popped up. I'll continue trying to reproduce, but any troubleshooting tips would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions