#### Category : storage

maybe someone can point me in the right direction. I have developed a Laravel PHP project which allows people to upload and watch large video files (as well as audio files). Those files are confident and specific to a group of users, i.e. they shall not be publicly accessible. For now, the PHP code takes ..

I’m using Laravel 8 with Docker on Windows 10 through WSL2 and Sail. I created a CRUD to store some articles with images in my DB. I’m trying to show images from laravel storage, but they are not appearing in the browser. How can I fix this? ArticleController.php /** * Show the form for creating ..

I really need your help! Pleasee! I’m using Laravel 8 with Docker on Windows 10 through WSL2 and Sail. I created a CRUD to store some articles with images in my DB. ArticleController.php /** * Show the form for creating a new resource. * * @return IlluminateHttpResponse */ public function create() { return view(‘admin.articles.create’); } ..

I want to download some mixed files from google drive using my Laravel App but for exp Images download correctly, but Docs file comes empty Provider: Storage::extend("googleConsole", function($app,$config) { $client = new Google_Client;$client->setClientId($config[‘clientId’]);$client->setClientSecret($config[‘clientSecret’]);$client->refreshToken($config[‘refreshToken’]);$service = new Google_Service_Drive($client);$adapter = new GoogleDriveAdapter($service,$config[‘folderId’]); return new Filesystem($adapter); }); Controller:$response = Storage::disk(‘googleConsole’)->download($fileName);$file ..

I’m trying to download a file stored in my Larval 8 Storage folder. The path is correct I have checked it multiple times. And If I open the path in the search bar. It takes me to the needed image. What am I doing wrong here? Controller public function show($_id) {$currentUrl = URL::current(); $qrCode .. Read more I’m new to Laravel and I’m currently working on a web application in localhost. I heard that if you want to make files publicly accessible you should store them in the public folder inside the storage. This is my code for storing (for example test.pdf):$filename = $request->filename;$file = $request->file; file_put_contents(storage_path(‘apppublic’).’uploadsclients12".$filename, file_get_contents($file)); In my .. Read more I am working on mail functionality mail is sending properly using curl functionality but I need to attach the image or file with the mail which is stored in the storage folder can you help me, how I am able to attach the files thanks in advance Here is my code$toEmailId = ’[email protected]’; $fromID= .. Read more I’m trying to access some files on a separate server via SFTP with my Laravel application. Here’s what I have done so far. I installed league/flysystem-sftp package. I updated the sftp section in config/filesystems.php file with the credentials I was given. ‘sftp’ => [ ‘driver’ => ‘sftp’, ‘host’ => env(‘BILLS_SFTP_HOST’), ‘username’ => env(‘BILLS_SFTP_USERNAME’), ‘password’ => .. Read more I am new to Laravel. so I have 3 hosts : one which my website is on, the next 2 ones are my download servers. I want to make VIP access on my site for downloading files that are on my download servers. my problem here is some of my links are directed to my .. Read more In configfilesystems.php a disk is configured (this is a properly connected VPS.) I call it vps_disk. In the following way I can get the file:$file = Storage::disk(‘vps_disk’)->get(‘/path/to/file’); The problem is that I can’t save then this file on the local disk (changing its name moreover). I try unsuccessfully in this way: $save_file =$file->storeAs(‘/’, ..

I have a Laravel application, I want to have a secure storage system for my registered users. How should I plan for it, should I create a new bucket for each user, or create folders for each user inside one bucket How can I restrict users not to access each others folders? Thank you Source: ..

Just starting to work with File uploads in Laravel 8.x. I have a UI built and routes and a Controller, and I’m having an internal debate about where and how to store the files. The expectation is that the files will be .gif, .jpg, .png, .pdf, ?.docx, and possibly some video files types, but mostly ..

I’m working on my production it’s based on PHP Laravel framework ,, is there anyway to add additional hd and link it to my project for using it to upload images, videos, data.. using it as storage so how to do that and is there better idea like to make new VM with higher HD ..

In my laravel 7.x application all the uploaded files are stored in storage/app/public/<user-uuid-as-directory> For example: storage/app/public/a6d4b3cb-a823-11eb-bfce-fcaa149efd09/72c2881d-a824-11eb-bfce-fcaa149efd09.png When I am trying to access the file, I am getting 404 error. filesystem.php … ‘images’ => [ ‘driver’ => ‘local’, ‘root’ => storage_path(‘app/public’), ‘url’ => env(‘APP_URL’) . ‘/images’, ‘visibility’ => ‘public’, ], … some.blade.php $uuid = auth()->user()->token; // .. Read more I have config: ‘tests’ => [ ‘driver’ => ‘local’, ‘root’ => storage_path(‘tests’), ], and run: Storage::disk(‘tests’)->copy(‘1.txt’, ‘/tmp/2.txt’); The Storage copies file to directory ../tests/tmp/2.txt, but not in /tmp How to copy a file to the system directory /tmp? Sourc.. Read more I am facing an error while showing back image stored in storage folder in laravel. so here is my code of storing image in storage folder : public function store(Request$request) { $data =$request->all(); // dd($request->Image);$User = Auth::user()->id; $rules = array( ‘postname’ => ‘required’ , ‘description’ =>’required’, ‘Image’ => ‘required|image|mimes:jpeg,png,jpg|max:8192’, );$validate=Validator::make($data,$rules); if ..

I am facing an error while showing back image stored in storage folder in laravel. so here is my code of storing image in storage folder : public function store(Request $request) {$data = $request->all(); // dd($request->Image); $User = Auth::user()->id;$rules = array( ‘postname’ => ‘required’ , ‘description’ =>’required’, ‘Image’ => ‘required|image|mimes:jpeg,png,jpg|max:8192’, ); $validate=Validator::make($data,$rules); if .. Read more I’m making an application which serving audio files, my backend is running on laravel and I’m using service worker to cache the audio files, the issue is when those files get fetched from laravel’s storage the response looks something like this I don’t know what the issue is exactly, any help would be appreciated. Thank .. Read more I would like to display an image saved in storage directory in a blade view. I am succesfully storing the file to the storage/app/public folder like so ProfilesController file: if(request(‘image’)) {$imagePath = request(‘image’)->store(‘profile’, ‘public’); $image = Image::make(public_path("storage/{$imagePath}"))->fit(1000, 1000); $image->save(); } auth()->user()->profile->update(array_merge($data, [‘image’ => \$imagePath] )); Now I would like to retrieve the image ..

I’m trying to create a Dashboard for a personal project, I want the storage of the Dashboard to be completely separate from the front end, I create a new disk in the filesystem.php and this is the details: ‘disks’ => [ ‘local’ => [ ‘driver’ => ‘local’, ‘root’ => storage_path(‘app’), ], ‘public’ => [ ‘driver’ ..

I’m developing a job tracking app that runs on cloud server. My users don’t want to load their files onto a cloud or shared server because of privacy reasons. Instead of storing on internet, I want to crate local ftp server and use it for file storage system. To do that, I need to set ..

I have an app that saves pdfs to the Laravel storage folder that must then be made public. I linked the /storage folder in laravel’s root to public as per laravel instructions by using: php artisan storage:link I’m having a confusing issue where I can’t figure out how to access the files in that storage ..