I have Laravel backend with Intervention package to handle images.
All images are stored in S3 bucket and are accessed through CDN - Cloudfront distribution.
When user requests image from my app I use something like this line to fetch image and return it to user.
return Image::make("https://*********.cloudfront.net/S3_image_path_and_filename.jpg")->response()->header('Cache-Control', 'max_age=3600');
This code worked without any troubles for more than a year without any changes but recently I started to see that some images on client side are empty and there are errors saying
Intervention\Image\Exception\NotReadableException Unable to init from given url
I looked up for issues with missing images but they exist in S3 bucket and are accessible through Cloudfront. I even see them on client side after clearing cache or waiting for some time - so this issue is flacky, can't reproduce it. I even don't see any error associated with images in Cloudfront distribution.
My questions are
what could be the reasons behind this issue?
how I can debug it?
maybe I need to handle the exception above but I am not sure what should be returned to user in that case?
Does anyone know the endpoint for getting all of the iamges you uploaded to the media libray in one request?
Im using next js with strapi and need a way to grab all of the images from the media library but there doesnt seem to be any documentation on this
/api/upload
GET /api/upload/files Get a list of files
GET /api/upload/files/:id Get a specific file
POST /api/upload Upload files
DELETE /api/upload/files/:id Delete a file
Reference
https://docs.strapi.io/developer-docs/latest/plugins/upload.html#configuration
GET /upload/files
You can read more on the docs
I have a strange behaviour from Laravel. I just copied the website to a new hoster. Everything is working quite fine but one thing: I can't access the images in my public folder. If I try to open an image on my own with "domain.com/img/Ausfahrten/42.png i get the following error:
error image loading
The folder structure on my server looks like this:
enter image description here
What method can't laravel find and how can I resolve this? I've already checked file permissions on the server, everything's fine there.
Laravel throw that error when it cannot find the file. Try to access to another directory without Uppercase letter in its path name.
I'm currently trying to upload image using ASP web API and save it in my Azure server using this tutorial
Then I took the request stream using Request.Content.ReadAsStreamAsync().Result and send it to Azure using blob.UploadFromStream(stream);
The file got uploaded and when I fetch the URL it returns something like
http://testing.cloudapp.net:10000/devstoreaccount1/saveFiles/File_2_2.zip
I tried the link but it just returns a blank page.
Any idea why I can't download my uploaded file back?
It turns out I should just use blob.UploadFile(fullLocalPathFileName) instead of blob.UploadFromStream(stream). You can get the full local path of your file from the MultipartFormDataStreamProvider and just send it easily to the blob.
We have a web site with domain http://209.59.154.150/~phnxaudi/,.
To develop this website we have used Joomla framework, and we have used Ckeditor in it, for uploading files(pdf, images etc ).
Also we have installed Ckeditor in the server.
But for some reason we are getting an internal 500 server error.
Could anyone please help us to solve this issue?
I have gotten 500 errors from ckFinder. It almost always is permissions. Ensure that the internet user has read/directory browse/write permissions to the configured "user files" folder.
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server.
if that's dont work, try to gave 0755 permission to the connector file in core....
when you put your files in the server automatically give 0777 permissions, and I can't execute php file, ...
try with a "hello world" en ckfinder folder and you can see the problem of permission.
sorry for my bad english.
enjoy!
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server. by Wim Van Loon < this solves the problem
Does the filename contain non-standard characters? Does it have no extension? I've found that if either of those are true, the image will not upload, the logs show nothing, and the CKEditor image upload interface shows a 500 error.
I faced the same issue with my ck_editor app, I was getting a similar type of error.
I tried copying demo application from django-ckeditor repository ck-editor demo application
with all the settings.
I faced two types of errors:-
Not mentioning upload path in the root urls
path('upload/', ImageUploadView.as_view(), name="upload")
import ImageUploadView from the ckeditor_uploader.views
I selected ckeditor_uploader's pillowbackend
This forum was quite useful to solve this problem.
which should have been something like
Hope it solves your problem.
i get this error
after install ckeditor and add the ckuploader '
Note: don't forget before you do the upload to run this commend:
python manage.py collectstatic
you need to get this folder in your project and on it you find this ckeditor folder:
enter image description here
I do this settings and it worked for me:
enter image description here
if you don't work with you just search on youtube
how to upload images in django - ckeditor