Custom uploader

alt=
DannyA
@dannya
9 years ago
584 posts
Is it possible to swap out the uploader without breaking all the modules. I want to do 3 things:

1. Change the progress bar on direct uploads
2. After linking a user to their dropbox account (and saving their key after authentication), I want to give the user the option to select a file that will be ingested by background process via queued function after the form is submitted.


updated by @dannya: 06/19/15 10:55:45PM
michael
@michael
9 years ago
7,717 posts
the 'file' form_field type is registered by the jrCore module
/modules/jrCore/include.php
jrCore_register_module_feature('jrCore', 'form_field', 'jrCore', 'file');

If you created a module that was processed after jrCore was in the startup process you could also register that same form_field then your version would be used instead.

As to whether it would break all the modules or not, that would have to be discovered along the way. Can't say for sure what issues you would run into because I've never tried. As long as you returned all the things the modules are expecting to see so they can continue it should be possible.
brian
@brian
9 years ago
10,148 posts
This would be something very custom - the current uploader is not designed to be swapped out.

Sorry!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags