dilab / resumable.php

PHP backend for resumable.js
http://www.startutorial.com/articles/view/resumable-file-upload-part-1
MIT License
42 stars 40 forks source link

how to override new FileName if FileExist and return Filename as response??? #32

Open alireza5014 opened 4 years ago

abilogos commented 10 months ago

I believe if the file exists it will be overridden,

and if you want to separate the namespace for each user, so the redundant file name wont collide whit each others:

like user 1 uploads an untitled.jpg & user 2 uploads an untitle.jpg

in this case you can use the instanceId with id of the users (or any string to use as a namespace)

$resumable = new Resumable($request, $response, $instanceId);