Reputation: 83
I am using Fine Uploader (https://fineuploader.com/) with a traditional server.
I am using the PHP example provided (https://github.com/FineUploader/php-traditional-server) and all works fine, files get uploaded fine.
What I am trying to do is somehow modify it so I can specify my own upload folder. Ideally, I would specify the folder path on the upload page and pass it to the endpoint.
What is the easiest way to do that?
Upvotes: 1
Views: 1334
Reputation: 109
You need to change
$result = $uploader->combineChunks("files"); // Line 76
and
$result = $uploader->handleUpload("files"); // Line 81
in endpoint.php with
$result = $uploader->combineChunks("whereyouwanttoupload");
and $result = $uploader->handleUpload("whereyouwanttoupload");
Upvotes: 1