Comments (3)
The documentation says:
- oninitupload(startupload, fileinfo, queuestarted) - An optional callback function that is called when the user clicks the Upload icon or presses Ctrl + U.
- startupload(fileinfo, process) - A callback function to call upon completion of initializing the upload or on failure. The 'process' option can be used to tell the callback to process the upload itself or skip it if it was handled in the callback (e.g. creating an empty directory). When 'process' is a string, it is treated as an error message to display to the user.
- fileinfo - The file information object of the file to initialize for uploading.
- queuestarted - An integer containing a UNIX timestamp of when the current upload queue was started. Can be useful to pass to a server that can use the value to copy files that are going to be overwritten to a recycling bin folder before the overwrite happens.
Unless I'm missing something, you should be able to call startupload()
and pass false
for the process parameter after handling the upload via Axios. I knew some people would not want to use the built-in upload handler when I created the widget. You can also pass an error message back to the widget for it to display via the process
parameter.
from js-fileexplorer.
@cubiclesoft reopen as yes, I can call startupload()
and pass false
, but now it does not show progress of uploading
from js-fileexplorer.
When you call startupload() with false, then it is your responsibility to handle the upload including any upload indicators/dialogs/etc. You are telling the widget that you are or have handled everything related to the upload.
from js-fileexplorer.
Related Issues (20)
- Upload not working for files with size over chunksize HOT 2
- What are js-fileexplorer differences from WebDAV? HOT 1
- No tags, no npm/yarn, no composer ? HOT 3
- Error downloading multiple files HOT 14
- Doesn't open folders on iOS HOT 14
- Hide options (cut, upload, download) if they are disabled. HOT 6
- Feature: Add a package.json for importing into npm projects HOT 2
- Help following symlinks HOT 2
- How to get file object for file upload? HOT 4
- onmove - get file names by ids HOT 3
- Linux support HOT 1
- How to use without php? HOT 2
- Thumnail for video files? HOT 1
- PNG vs. SVG icons
- ARIA implementation/ADA screen reader compliance
- License request HOT 2
- Cool project. HOT 1
- How to empty recycle bin? HOT 1
- Skin / design contribution HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-fileexplorer.