Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
1 vote
1 answer
134 views

I try to upload an image using PostMan and the response returns a link to the image, but when I click on it, it shows "404 not found" even thought the image is saved in storage/app/public/...
Dina Alaraby's user avatar
0 votes
0 answers
81 views

I'm deploying a website using Laravel on a server using CWP (Control Web Panel). On localhost, I can access files in storage/uploads/... just fine. https://example.com/storage/uploads/...
uno's user avatar
  • 9
0 votes
1 answer
136 views

My application needs to retrieve periodically files from an sftp filesystem via console command. Writing unit tests for this command I need to fake this filesystem during the retrieval of those files, ...
fudo's user avatar
  • 3,044
1 vote
1 answer
93 views

I am using Laravel Breeze to handle profile updates, and I have added functionality to allow users to update their avatar. Everything works fine, but the issue is that when a user uploads a new avatar,...
Anderson's user avatar
0 votes
3 answers
124 views

I want to embed a pdf from storage into a view/iframe. The storage is private and I can't permanently store the files on public folder. Is there any way to accomplish this? Now the users need to see ...
helderneves91's user avatar
0 votes
1 answer
68 views

I'm working with a Laravel application where I need to manage multiple image uploads for an existing project. I'm trying to update the image list by first deleting old images from storage, then adding ...
Martinus Goh's user avatar
0 votes
0 answers
218 views

On Laravel 10 site using spatie/image I read file from storage path and making some modifications. I want to save it under other storage path, but I got error when try to save image under storage path ...
Petro Gromovo's user avatar
0 votes
0 answers
808 views

On laravel 10 / filamentphp 3 site I have added spatie-laravel-media-library-plugin and upoading file with comnponent : SpatieMediaLibraryFileUpload::make('image') ->disk('local') ->...
Petro Gromovo's user avatar
0 votes
0 answers
369 views

Sorry i'm still new to this. I would like to access/read files from another PC within the same network using Laravel. I can access the files over mapped network drive from my PC. I have try to access ...
Hixx's user avatar
  • 31
0 votes
2 answers
171 views

I have a issue while trying to mock multi Storage in laravel test enviromnment. Here is my my code: public function sftp ( Sibling $sibling ) { $file_paths = Storage::build($sibling->config)...
Erfan Sabouri's user avatar
0 votes
2 answers
1k views

I'm working with Laravel latest version and I want to show an image like this: <img src="{{ asset('storage/'.$media->med_path) }}" alt="Thumbnail" style="width: 100px; ...
Peter Amo's user avatar
  • 261
1 vote
0 answers
97 views

In my Lumen app I'm getting audio file from external Lumen service and saving it in Storage. $tempname = tempnam(sys_get_temp_dir(), 'response').'.mp3'; Http::sink($tempname)->get(...
Sutonne's user avatar
  • 78
1 vote
1 answer
526 views

We have a laravel application that has a command to move some files from one s3 bucket (different account) to another s3 bucket. This command runs once at day, and certainly every time it runs we get ...
Garis M Suero's user avatar
1 vote
1 answer
682 views

I'm trying to upload file via Laravel filesystem abstraction on two different remote servers with: Storage::disk('sftp')->put($fileName, $file); Storage::disk('ftp')->put($fileName, $file); The ...
DEVX's user avatar
  • 11
0 votes
0 answers
38 views

I want to load an image as avatar of user like this at the Blade: <img src="{{ route('adm.profile.details.show.avatar') }}" alt="user-img" title="Avatar" class="...
Peter Amo's user avatar
  • 261
-1 votes
1 answer
1k views

I was able to successfully save the generated pdf file to the path storage/app/public/pdf. Now I want to open a link to each pdf file from a data table in a view. I keep getting a 404 error whenever I ...
Maranda Dominguez's user avatar
0 votes
1 answer
69 views

I have two different points which I need to write to the same log file, one is a concole commando file and another is a web controller. In both cases I use append command: Storage::disk('local')->...
guyaloni's user avatar
  • 6,020
-2 votes
2 answers
1k views

I have made a Media Library in Laravel 8 app which users can upload their pictures. Here is the blade that retreives information of uploaded assets in a table: <table class="table table-hover&...
Peter Amo's user avatar
  • 261
-4 votes
1 answer
1k views

I am trying to access images for my project. I have run php artisan storage link Laravel create public/storage when I upload image to storage/app, I see the image in storage/app but not in public/...
upcoming's user avatar
0 votes
3 answers
724 views

I have a Laravel 9 project and I just uploaded this project into server. Now for this project everything works fine except the images that are coming from storage directory. For example, I tried ...
Peter Amo's user avatar
  • 261
0 votes
0 answers
2k views

I have working upload file feature with AWS, This is my code for upload file /** * Create image and save it to storage. * * @param string $key * @param string $relation *...
Suhadak Akbar's user avatar
0 votes
0 answers
256 views

I am downloading a file from an FTP storage. Even though the file exists and has content, the $download->getContent() always returns false. I want that method because I need to use it for put to ...
csandreas1's user avatar
  • 2,420
3 votes
2 answers
699 views

I am having a strange issue when trying to attach images to a HTTP request in Laravel. I am using the following code to send a file to a 3rd party api, but the 3rd party is only receiving partial ...
BigJobbies's user avatar
  • 4,095
0 votes
1 answer
1k views

In PHP , i would do this <?php //create new private and public key $new_key_pair = openssl_pkey_new(array( "private_key_bits" => 2048, "private_key_type" => ...
desh's user avatar
  • 697
0 votes
0 answers
736 views

Using Storage In older version of Laravel is working fine but Laravel9 is creating an issue File Mime type: application/octet-stream return Storage::download($shippingLabelPrn); Laravel9 shows error ...
Shringiraj Dewangan's user avatar
2 votes
3 answers
1k views

I'm using Laravel 9 for making a forum project. Now for this project, I need to upload some images. So at the Controller, I added this: if($request->has('filep')){ $files = $request->file('...
Peter Amo's user avatar
  • 261
1 vote
1 answer
1k views

We are using an amazon s3 bucket for storing files. There are very large number of files present, so we need to read files using date and time filter on which all the files have been created. We are ...
CodeZoe's user avatar
  • 13
1 vote
1 answer
134 views

I'm using Laravel 5.8 and I wanted to delete an image from storage directory. Basically the images is placed at this dir: /storage/app/public/laboratories/labs/21/pics And I tried running this method:...
Peter Amo's user avatar
  • 261
-1 votes
1 answer
1k views

I want to access my Storage, which is FTP (remote server) by default as it is in the config and I want to download a file from there to my application. If I use Storage::download('path/to/file') I get ...
Sasquatch's user avatar
  • 117
0 votes
0 answers
140 views

Can someone help me while enrollment_form gets uploaded to the database? I also want it to be uploaded/stored in the /public folder. public function submitForm(Request $request) { DB::table('...
Angel's user avatar
  • 9
0 votes
1 answer
573 views

I've been working on this setup but I cannot save the downloaded streamed response to my zip file. I am using ZipArchive package and currently when I use return on the one with the yellow arrow. It ...
Albert Ruelan's user avatar
-2 votes
1 answer
142 views

What is the correct way to upload,update and get an image or file in laravel ? I had gone through laravel docs and other references but its confusing.Can anyone show a complete simple example for any ...
Vishnu kk's user avatar
0 votes
0 answers
56 views

I am trying to Storage::download(file_path) but with pdf file type it showing pdf file in postman, however with .doc/.docx it is returning some garbage value. I want to return doc file like pdf, below ...
Taha Malik's user avatar
1 vote
1 answer
2k views

I have two laravel project on shared hosting one admin panel and another website . main site is on /public_html directory and another on /portal directory . -----(/home/onomy) +portal |-...
akif akram's user avatar
1 vote
1 answer
9k views

I'm trying to retrieve a file from this path in a laravel project: /storage/app/public/blog/3.jpg These approaches produce following errors: 1. $image = Storage::disk('public')->get('/storage/blog/...
Artur Müller Romanov's user avatar
1 vote
2 answers
3k views

I'm trying to implement this guide on how to upload an image to the laravel storage but when I submit, it shows that the page is expired. There is not error report in the log which makes it difficult ...
Artur Müller Romanov's user avatar
3 votes
2 answers
13k views

I'm trying to access the public images on my server via URL on the browser. To do this, I have the following hierarchy in my storage folder: storage |app |public |post |1 ...
Reading this name is illegal's user avatar
0 votes
2 answers
1k views

I'm using a hosting service to upload my laravel project and link it to laravel's public directory using php header location in laravel's root directory. Then I created a storage link in public ...
Amar Wibianto's user avatar
1 vote
1 answer
12k views

I want to download a file from Storage/app/public folder. Somehow it doesn't work with out any error message. Below is the code I've tried. web.php Route::get('/viewAllFile',[DownloadController::class,...
tonini's user avatar
  • 13
1 vote
0 answers
517 views

I have successfully generated a temporary link in laravel which works correctly locally but when I try to generate a link via Storage::temporaryUrl for the production environment, it does not work. ...
Alexa's user avatar
  • 400
3 votes
2 answers
1k views

What I have done When I researched about storing files in laravel. I came across two approaches. Storing the assets directly inside the public folder. Creating a symbolic link from public/storage to ...
CodeR_Ax20's user avatar
0 votes
2 answers
5k views

Looking at some samples how Laravel work with AWS S3 survice I see examples of code like : $path = $request->file('image')->store('images', 's3'); But when I try to upload file from my local ...
mstdmstd's user avatar
  • 3,321
0 votes
0 answers
269 views

I use Laravel 8 with this code: use Illuminate\Support\Facades\Storage; // ... Storage::disk('aws')->rename($old_path, $new_uri); But it doesn't work. I tried to do this too, but also not worked:...
netdjw's user avatar
  • 6,101
0 votes
1 answer
237 views

I'm having issue with Laravel storage displaying image. i've enabled virtual host but when i click on the image url it goes to http://localhost/storage/. The same issue even with php artisan serve ...
Richu's user avatar
  • 13
0 votes
1 answer
582 views

In my Laravel 5.8 application I generate dynamically urls to download documents that are stored under storage directory. I send the generated url via email, so user can click it in order to download ...
guyaloni's user avatar
  • 6,020
1 vote
1 answer
3k views

I am trying to lock a file with the flock function but I am not able to do it. I work with Laravel 8 and Storage Class. The code is as follows: $disk = Storage::disk('communication'); $file_name = '...
cooper's user avatar
  • 674
4 votes
1 answer
3k views

I have a particular "disk" object obtained from the Laravel Storage facade, i.e. $disk = Storage::disk('some-name'). How do I get the name of the driver for that disk $disk? In particular I ...
user2690527's user avatar
  • 1,931
2 votes
1 answer
10k views

On Windows I have Xampp. My application is in Anuglar and Laravel 8 I add files to folder public in storage folder. Configuration in filesystem.php: 'public' => [ 'driver' => 'local',...
Jonson's user avatar
  • 53
0 votes
0 answers
246 views

I have a web app where the user can upload files, create folders and stuff like that, I upload it on Google Cloud Storage, and organize it on a table files on my database, where I save the file name, ...
SpaceDogCS's user avatar
  • 3,008
1 vote
1 answer
1k views

I need create ZIP file from folder in other host (subdomain) with FTP. I need get download link from FTP. $id = 1; $zip = new ZipArchive; $fileName = 'myNewFile.zip'; if ($zip->open(storage_path($...
mySun's user avatar
  • 1,706