Special path to files with fine-upload - fine-uploader

I want to transfer files in different folders on the server.
I did not find an option in the documentation to do this. Is it possible?

Assuming you are using php endpoint, you can user php rename function as following after the file is uploaded.
rename("user/image1.jpg", "user/del/image1.jpg");

Related

Create a .txt file and store it on a specific folder Laravel

So basicly, I have to make a Laravel command which will create a .txt file. The command accepts as arguments the index of the file(id) and one or more tokens(words inside file). I am finding unable to create the file with it's content inside my desired folder(Called 'files' inside the root directory).
I found a way to create it inside the Storage, but that's not exactly what i need.
Would appreciate some help, thank you
Check out the filesystems.php file and add a specific configuration for the directory you want to read/write. After doing so, you will be able to create a file using the File facade by specifying your disk like so: File::disk('my-disk').

File::make('Fichier', 'path')->storeOriginalName('original_name') gives me gEUBH18u1UdjoPBS0POQB64xit5PF05Rnl8M5lMI.pdf

I'm using Laravel Nova,
I want to upload a file to S3. As this file is generated automatically, I know it has already a good naming. So, I want to keep original filename. But when using:
File::make('Fichier', 'path')
->disk('s3')
->storeOriginalName('path')
I realized that my file, originally named FILE1.pdf now is named gEUBH18u1UdjoPBS0POQB64xit5PF05Rnl8M5lMI.pdf
Why ?

Laravel configuration usage for different servers in pure php file

I am new in Laravel and want to know such problem
I am running an web application on several server using Laravel.
But I have encountered with an issue.
When there is modification for the project, I need to sync with git on several servers.
But it has different settings for each server (eg: DB name, DB password...)
I have set it manually because I couldn't use .env or configuration file since the file is just pure php file.
The issue I want to solve is how can I get Laravel configuration data from pure PHP file(not controller or whatever).
It will be thankful if someone teach me solution.
You asked:
how can I get Laravel configuration data from pure PHP file
The answer would be this:
You just make some file in config/ folder of laravel app (or use the existing file like config/app.php)
You make an array of your key value pairs
<?php
return [
'some_key' => 'some_value',
...
and you simply call it with this code where ever you need it:
config('config_file.key');
for example
config('app.name');
would give you Laravel by default.

Parse Server - Where does it store uploaded files

I am new to Parse Server (implementing it on Heroku and locally).
I have a basic question, when I upload a file using the ParseFile class, it provides me a URL and a fileobject. Where is this File being stored?
Is it being stored physically on a file system? Or in Mongodb?
Thank you!
I found a collection in Mongodb named fs.files. The files I uploaded were located there. I assume the Parse URL is generated as a redirect.

Codeigniter zip archive password

I am using Zip helper from CodeIgniter to create archive. Everything works perfect, I want to add password for this zip, can anyone help ?
Thanks
Unfortunately you can't do this in Codeigniter or native PHP for that matter, you'll need to use the system() function and process the Zip on your host machine.
See https://stackoverflow.com/a/646221/1734864 for a fuller answer and http://php.net/manual/en/function.system.php for the function reference.

Resources