Download the PHP package yunusemrebaloglu/chunk-upload without Composer
On this page you can find all versions of the php package yunusemrebaloglu/chunk-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yunusemrebaloglu/chunk-upload
More information about yunusemrebaloglu/chunk-upload
Files in yunusemrebaloglu/chunk-upload
Package chunk-upload
Short Description A Laravel package for quick deployment tasks.
License MIT
Informations about the package chunk-upload
ChunkUpload
ChunkUpload allows the chunked uploading and merging of files to be uploaded. You can customize it to fit your own design with an example InertiaJs component. It performs the upload process into the specified disk. If there is a route specified in the upload process, it uses that route. If you want to delete, it removes the relevant file. If you activate automatic deletion, it performs the deletion process based on the minute you have specified or the data on the config.
NOTE: We recommend specifying a special disk for the deletion process. All files in the specified directory will be affected!
Installation
You can install ChunkUpload via Composer. Run the following command in your Laravel project directory:
Configuration
To publish the package's configuration file, run the following command:
This will copy the configuration file to your config directory where you can customize it.
This will copy the configuration file to the InertiaJs component 'components' directory where you can customize it.
Usage
For the Chunk Upload process, first include the relevant component.
You can perform design and editing operations via the relevant component.
This component can work with v-model.
After the file is uploaded, you can process the file on the disk you have provided via the config with this name.
Delete Files
NOTE: We recommend specifying a special disk for the deletion process. All files in the specified directory will be affected!
The command below retrieves files from the disk you specified. It compares with the time specified in minutes on the config. If the time has passed, it deletes the files.
License
ChunkUpload is open-sourced software licensed under the MIT license.