Error thrown when uploading assets
See original GitHub issueHi,
I have successfully deployed the app to my server, and many thanks to the great work from you. However, after the upload process completed, server will throw error as followed and failed to save/serve the uploaded file:
Sending 500 ("Server Error") response:
Error: ENOENT: no such file or directory, open '7b956cf1-9406-4530-92c4-e46e241becfb.zip'
I have tried updated the dirname
in local.js
and ensured that directory has correct permission for user (in fact, I even tried 0777), but still no luck on this.
It seems the file is not getting stored anywhere, could you please help with this issue and provide more information about the assets storage progress?
Many thanks to you!
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Troubleshoot asset upload errors - Ads Creative Studio Help
Check that the file you're trying to upload uses a supported asset type. If it's not supported, try uploading a different asset. You...
Read more >Error Uploading Assets - Craft CMS Stack Exchange
We're receiving the following error when uploading Assets: Upload failed for Michael-Mabry-COO-MOOYAH-executive.png. The error message was: “Error uploading the ...
Read more >Asset uploading-error | SAP Community
I am doing asset uploading throw BDC. In Excel sheet there is GROUP ASSET coloum is there. I have one doubt. Which particular...
Read more >[CMS-6360] IE8: when uploading a document to assets an JS error ...
When uploading a document to a folder in Assets in ie8 a javascript error is thrown. It has to do with a generated...
Read more >Receiving error in Anypoint Exchange "The uploaded file does ...
You are getting the error "The uploaded file does not have a valid OAS format" while uploading OAS assets to Exchange. User-added image ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have to say that neither @oozliuoo solution nor @nellyLidanYang solution worked for me, but a combination of both methods.
Just in case someone is in the same situation as me, this is what I did:
config/local.js
:dirname
to__dirname
and setting the location of the dir to be./
.api/controllers/AssetController.js
:.getHash()
calls to add the temp folder.fd
attr to be similar to the previous change.try set"dirname" to __dirname. I fixed mine with that