saluev / bootstrap-file-dialog Goto Github PK
View Code? Open in Web Editor NEWA simple file dialog using Bootstrap and jQuery.
License: MIT License
A simple file dialog using Bootstrap and jQuery.
License: MIT License
The input file does not have a name, so I force a name on it. The problem is when I close the modal, the files is gone. I need to close the modal and then submit the files with the rest of inputs on my form.
How can I do that?
it's possible add description property in files?
ex:
file[0].data = .......
file[0].name = file.txt
file[0].description = 'test'
The button "Ok" in the modal footer should be disabled while a file is being uploaded, and then enabled when the file upload is done
Problem is on FF, when i use remove file from list, console log result:
: bootstrap.fd.js:78:0
Empty string passed to getElementById().
Greetings!
Thanks for this nice plugin, its just what I needed!
Found this isssue w/ this code:
$.FileDialog({
"readAs" : "ArrayBuffer",
"accept" : "image/*"
})
.on('files.bs.filedialog', function(ev) {
…
I was assuming it'd error out or at least not continue on to the .on('files.bs.filedialog')
function ;)
when you try to upload files with name like "Jonh's file.txt" the plugin hangs
When i put accept: ".csv" no filtering is done and its show all files on Safari.
$.FileDialog({
accept: ".csv", //acept: MIME type of accepted files, e. g. image/jpeg
okButton: "OK",
cancelButton: "Close",
title: "Upload files"
})
var file_list =ev.files
store files in file_list, how can I use file_list to pass the data to php for the php to save it in the server?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.