This article comes in handy when you want to alter the default file uploader initialization behavior. That can be done to get more control over file uploader on your system and has to do with the two following boolean parameters:
UPLOADCARE_MANUAL_START, the option which defaults to
falseand controls the start of file uploader initialization.
UPLOADCARE_LIVE, the option which defaults to
trueand controls the character of that initialization.
This means that by default file uploaders are initialized during your page load. And,
every ~100 ms we check if there are any new inputs with the specific role
All file uploaders on your page are initialized during its load, which may not be the
desired behavior when you want to do something before the page load. That is
UPLOADCARE_MANUAL_START option comes in
You should pass the
uploadcare.start() to override global settings.
However, you can still pass any global settings, but keep in mind that
settings keys are
By default, new
[role=uploadcare-uploader] elements on your page are
initialized as file uploaders in every ~100 ms. Such behavior is caused by a single