Unable to retrieve the file_size for file at location - Laravel S3 - laravel-9

I was using L5.8 for my project, and recently i changed to Laravel 9.
Here after, I'm not able to retrieve the file from Amazon S3, it shows the following error.
Unable to retrieve the file_size for file at location
This is my code to retrieve the image file
return Storage::disk('s3')->response($file_path);

I just found out, we were using FILESYSTEM_DRIVER=s3 in previous laravel version.
But for Laravel 9, i've to modify it to FILESYSTEM_DISK=s3

Related

Missing cli.json file when creating a new Vue project using Amplify

Missing cli.json file when creating a new Vue project using Amplify. I am following the official tutorial
I get as far as Initialize a new backend and run amplify init:
Initializing finishes with the following (it does not matter whether I answer yes or no to the share information on failure message):
And here's the file structure:
I also notice that the aws-exports.js file was not created. Oddly enough, the aws-exports.js file is listed in the .gitignore file.
I have tried a few times to create a new project, in VS and in the windows console. I have also tried creating the Vue app using Vue 2 and 3 and come up against the same issue.
In my final attempt, I came across the same issue but proceeded to "successfully" add the graphQl API but this error was displayed when I ran amplify push to update the backend:
An error occurred during the push operation: /
The AWS Access Key Id you provided does not exist in our records
I presume this is because the aws-exports.js file that contains the access key does not exist?
I'd appreciate any help in sorting this out.
thanks
solved!
I mistakenly created the project within another project.

Getting content length is not supported in Yii EAjaxUpload

I am using Yii EAjaxUpload extension to upload files. I am facing a problem during uploading image. 'Getting content length is not supported'. In console It is showing the error "http://46.101.98.121/MyApp/index.php?r=controller/upload&PHPSESSID=j7…KEN=077cb06478a3c70e40a2a01dc4cb1a94a6ff96ec&qqfile=518164-backgrounds.jpg". In php.ini 'upload_max_filesize' and 'post_max_size' both are 100MB. File is already uploaded to the destination folder but the uploading procedure fails each time. Please help.

Read PDF from web and store it in S3 bucket

I am doing a project using ruby on rails which requires reading a pdf from web(link provided by users) and store in amazon S3 bucket.
Rails version 3.2
Ruby version 2.1.5
My sample code
require 'open-uri'
data = open('http://www.cbu.edu.zm/downloads/pdf-sample.pdf')
path = "pdf_files/123/sample.pdf"
AwsWrapper::S3Object.store(path, data, S3_CONFIG[:bucket], :content_type => 'pdf')
Above code stores that file in S3 but while opening the file I can't see data. It showing error message like Failed to load PDF document I am new to RoR. Please help me. Thanks in advance.

Backload -Errorcode-12 : Exception occured while storing the file

I have some issue in uploading file using JQueryFileUpload with Backload.
I have added settings in web.config to upload large file like 1 GB file allow.
When i try to upload zip file around 150MB it upload successfully but when i try to upload file around 200 MB it showing following exception.
errorcode:12
error: Exception occured while storing the file
Can you please help me to get the solution? Why i am getting above error?
I have one other question : can we use UNC path to save image outside of website folder? If yes then how we can use?
Thanks in advance.

Filebrowser showing IOError while uploading files(images,docs etc.......)

In django CMS project...i used filebrowser for file uploading .But Filebrowser showing IOError while uploading files in django python 1.4.1.
Anyone who solved this one ,please answer or give me any solution.
While uploading images or documents using filebrowser the image/document is uploaded but always showing error....