dilab / Resumable.php
PHP backend for resumable.js
Stars: ✭ 32
Projects that are alternatives of or similar to Resumable.php
react-file-input-previews-base64
This package provides an easy to use, ready to go and customizable wrapper around file input, with option for image previews and returning file as base64 string.
Stars: ✭ 15 (-53.12%)
Mutual labels: upload, file
ShareX-CDN
Basic image, text & file uploader CDN for ShareX
Stars: ✭ 22 (-31.25%)
Mutual labels: upload, file
ic-firebase-uploader
This component is a multi-file uploader for firebase
Stars: ✭ 21 (-34.37%)
Mutual labels: upload, file
PHP-FileUpload
Simple and convenient file uploads — secure by default
Stars: ✭ 53 (+65.63%)
Mutual labels: upload, file
Cj Upload
Higher order React components for file uploading (with progress) react file upload
Stars: ✭ 589 (+1740.63%)
Mutual labels: upload, file
ngx-dropzone
A highly configurable dropzone component for Angular.
Stars: ✭ 123 (+284.38%)
Mutual labels: upload, file
safe-svg
Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
Stars: ✭ 129 (+303.13%)
Mutual labels: upload, file
Ngx Material File Input
File input for Angular Material form-field
Stars: ✭ 193 (+503.13%)
Mutual labels: upload, file
react-simple-file-input
Simple wrapper for the HTML input tag and HTML5 FileReader API
Stars: ✭ 29 (-9.37%)
Mutual labels: upload, file
Aetherupload Laravel
A Laravel package to upload large files 上传大文件的Laravel扩展包
Stars: ✭ 835 (+2509.38%)
Mutual labels: upload, file
svelte-filepond
🔌 A handy FilePond adapter component for Svelte
Stars: ✭ 188 (+487.5%)
Mutual labels: upload, file
mat-file-upload
A simple & configurable Angular Material file upload component.
Stars: ✭ 14 (-56.25%)
Mutual labels: upload, file
Publicleech
can be found on Telegram as https://telegram.dog/PublicLeechGroup
Stars: ✭ 236 (+637.5%)
Mutual labels: upload, file
file-upload-with-preview
🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.
Stars: ✭ 406 (+1168.75%)
Mutual labels: upload, file
React Files
A file input (dropzone) management component for React
Stars: ✭ 126 (+293.75%)
Mutual labels: upload, file
Uploadcare Widget
Uploadcare Widget, an ultimate tool for HTML5 file upload supporting multiple file upload, drag&drop, validation by file size/file extension/MIME file type, progress bar for file uploads, image preview.
Stars: ✭ 183 (+471.88%)
Mutual labels: upload, file
File Upload With Preview
🖼 A simple file-upload utility that shows a preview of the uploaded image. Written in pure JavaScript. No dependencies. Works well with Bootstrap 4 or without a framework.
Stars: ✭ 352 (+1000%)
Mutual labels: upload, file
Chibisafe
Blazing fast file uploader and awesome bunker written in node! 🚀
Stars: ✭ 657 (+1953.13%)
Mutual labels: upload, file
PHP backend for resumable.js
Installation
To install, use composer:
composer require dilab/resumable.php
How to use
upload.php
<?php
include 'vendor/autoload.php';
use Dilab\Network\SimpleRequest;
use Dilab\Network\SimpleResponse;
use Dilab\Resumable;
$request = new SimpleRequest();
$response = new SimpleResponse();
$resumable = new Resumable($request, $response);
$resumable->tempFolder = 'tmps';
$resumable->uploadFolder = 'uploads';
$resumable->process();
More
Setting custom filename(s)
// custom filename (extension from original file will be magically removed and re-appended)
$originalName = $resumable->getOriginalFilename(Resumable::WITHOUT_EXTENSION); // will gove you "original Name" instead of "original Name.png"
// do some slugification or whatever you need...
$slugifiedname = my_slugify($originalName); // this is up to you, it as ported out of the library.
$resumable->setFilename($slugifiedname);
// process upload as normal
$resumable->process();
// you can also get file information after the upload is complete
if (true === $resumable->isUploadComplete()) { // true when the final file has been uploaded and chunks reunited.
$extension = $resumable->getExtension();
$filename = $resumable->getFilename();
}
Testing
$ ./vendor/bin/phpunit
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].