You have an example in the link you posted: https://github.com/ivansammartino/simple-laravel-multiupload/blob/master/app/Http/Controllers/PictureController.php
using blueimp/jQuery-File-Upload in laravel project
Hi there,
I am trying to use the jQuery FIle Upload in a project. I succeeded by using this as base https://github.com/ivansammartino/simple-laravel-multiupload
However this project is basically a migration of an existing non-laravel project of mine. In this project I had some customiziation in the index.php of the uploader.
this is the original from blueimp
error_reporting(E_ALL | E_STRICT);
require('UploadHandler.php');
$upload_handler = new UploadHandler();
and you can do something like this, to extend the functions
class CustomUploadHandler extends UploadHandler {
protected function initialize() {
do something extra
parent::initialize();
}
}
I guess the UploadHandler Code could go to a controller and then I would put my customization to another controller that does not extends Controller but my "uploadHandlerController". Can I extend the functions in laravel aswell?
Did anyone do this before or am I on the wrong path how this will work?
Cheers for any advice Christian
Please or to participate in this conversation.