maxpavlov / jquery-file-upload.mvc3 Goto Github PK
View Code? Open in Web Editor NEWAn example of how to use jQuery-File-Upload plugin with ASP.NET MVC3
License: MIT License
An example of how to use jQuery-File-Upload plugin with ASP.NET MVC3
License: MIT License
I tried updating the jQuery-UI version in this demo and it throws an error. Please tell me if there is a fix for this to use latest versions of jquery
Following error is occurring when opening page in IE 10.
Unhandled exception at line 1, column 201 in http://localhost:61396/Content/Bootstrap/bootstrap-image-gallery.min.js?cdv=1 0x800a138f - JavaScript runtime error: Unable to get property 'defaults' of undefined or null reference
Is there a way to know when the templates finishing loading?
I need to add some jquery logic to the template results, but jQuery(document).ready is firing before the templates load so do not have a way to interact wit the results.
I'm wanting to add drag and drop support of the uploaded images.
thanks.
Hello,
Thanks for such usefull demo....!!!! :-)
I am facing one issue in safari.
I m using safari (5.1.7). when i select multiple files to upload, all files get added in the list but with the size "0.00 KB". and thumbnails for image is also missing.
It works very well in mozilla firefox.
Hello,
It's a great project, thank for your sharing.
I am a newbie with this tool.
I used IE9 or higher to upload file, and I can't see uploaded files showed in the page.
So, I have no idea to solve it.
I need to help!
Thanks,
AllenStyle
Reported on the Google Group here: https://groups.google.com/forum/?fromgroups#!topic/jquery-fileupload/e6IWsEy5oaI
If I set MaxChunkSize and upload multiple files, then I wind up with inconsistent results, depending on the size of the files and their order:
•If the first of N files is larger than the maxChunkSize, then only the first file gets uploaded.
•If the first of N files is smaller than the maxChunkZize, then all the files get uploaded successfully.
Also, if I upload a file that's larger than the max chunk size, and the SaveTo path already has a file of the same name, then instead of replacing that file, it just appends to that file, such that if the file is 40K in length, then every time I upload it, it increases in size by 40K.
Thanks.
Hi, great code!
I want to implement this for loading files in specific folder at inicial state. To see a grid with submited files and can use slider with them, also your control can add more fles, etc.
Its difficult to implement?
Regards
Vadim
What is the license for this code? Could this be added to the Readme?
Thanks,
Elijah
Hi There, Great work on creating this Demo.
But is there a way to update the demo with latest versions of Jquery File Upload plugin files like (jquery.fileupload.js , jquery.fileupload-ui.js). Please post here if there is any other demo with latest versions. The issue in this demo is in IE browser, I have to double click to select files, which is fixed in the later versions of jquery file upload.
Hi there,
Hi there, what could this be caused by? I have the maxRequestLength set much higher. The file gets uploaded to the server but then it comes back with "Internal Server Error"... doesn't matter the file type... jut the size.
I am not using any of the picture preview stuff, nor the thumbnails. Most of the infrastructure is still there for it, but the templates don't refer to it anymore.
Environment is Win2008 Server; MVC3
Hi -
Could you tell me if this code is published under any license? We'd like to use it here at Purdue University for a project for mobile curriculum. Please advise. Thank you!
Setup instructions for asp.net MVC3?
Hi
Thank you very much for the work you are doing. I am attempting to use this in an MVC 4 based web site and need to do very large uploads, possibly up to 1GB video files of training sessions. In addtion I would like to have a number of descriptive fields to be used in a database go along with the upload.
Basicly the use case is as follows;
A small form where the admin selects a file (possibly as large as 1GB), enters a title value (not filename), a description, a few file type classifiers (archive, video, etc...). Upon submission all the data is sent. When the server succesfully finalizes the storage of the upload a database entry is added to the DB with the associated info. In the case of upload failure no DB entry is made and the admin is notified.
I would like to keep the concept in MVC and not use a HTTPHandler if possible(personal bias). I could easily create the File upload functions on a dedicated controler with its own associated security since this is only for the site admin to use. The issue seems to be around the maxMessageLength in MVC. I agree that it is a bad idea to set a huge maxMessageLength value for the entire site, but would it be possible to set an apropriate value on a location for JUST that controler? I have been beating my head against the wall on this issue and was hoping you had some thoughts.
I am doing this all in VS 2012 with .NET 4.5 & MVC 4 and the site is running on IIS 7.5.
Thanks,
Doug
So, why are we not supposed to use the methods in HomeController for uploading large files? And what should we use instead?
Thanks for your work on this. I just wanted to let you know that when I try to use it in either IE or Opera, the browser tries to download the file. I think I have fixed the issue, but I had to do a pretty significant refactor. I started with some helper methods from i-e-b's regular ASP.net example (https://github.com/i-e-b/jQueryFileUpload.Net). There may be a better way to do it, but let me know if you would like me to fork/check in those changes.
Hi, i want to implement this fantastic code in my MVC3 aplication. But when i refresh the page, the uploaded files dont appear anymore. Can anyone help me with this? I just want to show the uploaded files.
Thanks.
We've integrated this with a public facing site that we maintain. The site has a complaint form that allows the user to upload supporting files. When the form is submitted from an iOS or Android device, the uploaded files get resized 80 x 60, making them difficult to view. Is there support for file uploads from a mobile device?
Greetings,
after finishing uploading files - you can't see it or download (IIS SERVER 404 from UploadHandler.ashx),
but they appears in File folder.
I've used jQuery-File-Upload.MVC3.sln without any modifications.
The code sample uses 1.8.18/jquery-ui.min.js and it breaks the date picker if you are using jquery.1.10.2.
Hello,
It's not a issues but I can't create a "Pull Requests".
Is it possible to change name of the file when saved in /Files ? Example, I add pictures for a product, this product as a code, I'd like select an (or more) image and then place in the folder /Files Code+Timestamp
Thanks,
How is your progress with updating it to work with MVC4 going?
I'm using mvc5. I can upload images to server, to a custom folder.
Now I want to get images from that folder to file uploader when page is loading.
I don't understand how to do it. There is a template-download and I can't put image objects to it.
I'm spending way too much time on figuring this out and would like to hire someone as a consultant to help (1) implement some additional functionality and (2) fix a couple of problems.
App is in MVC4. Attached is screenshot of File-Upload as implemented so far.
Below is a list of things that are needed.
Enhancements needed:
Implementation fixes needed:
Thanks. If anyone interested let me know. Happy to pay for help.
Pat
There is a bug when trying to upload multiple files selected in the MVC3 sample (https://github.com/maxpavlov/jQuery-File-Upload.MVC3). These are the steps to reproduce it:
if also happens when autoUpload = false but it takes a while and it's not so easy to reproduce.
demo page seems to work fine. i've tracked it down to the "add" function in jquery.fileupload-ui.js file (line #80)
any ideas?
Hi,
Can you clarify what the limitations of the cancel upload is?
For me it seems as if I don't hit the cancel button literally same second as i click start the file will be uploaded regardless. This issue is more more prominent when uploading small files.
Regards,
Please update the JSON data format and templates aligned with latest version of blueimp plugin.
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.