i-e-b / jqueryfileupload.net Goto Github PK
View Code? Open in Web Editor NEW[Out of Date] .Net handler for http://aquantum-demo.appspot.com/file-upload
[Out of Date] .Net handler for http://aquantum-demo.appspot.com/file-upload
A very basic framework around jQueryFileUpload scripts, to host in ASP.Net. This project is no longer maintained. Please see https://github.com/blueimp/jQuery-File-Upload/wiki#aspnet for alternatives, or one of this project's forks.
I have downloaded the code and the other from trendset website which is the same but when I run the code which is here I am unable to upload images and getting error:true message and If I run the code from the above mentioned website I am unable to display thumnails and I need to show the original Images when clicked on them as shown in the example.Can you please help me out with these issues?
Iain, what should I set on the client (plugin init I guess) so that in .ashx handler, a UploadPartialFile would get triggered?
I am looking for the way to mark the finishing of the upload to further process the uploaded files, but in case UploadFilePartial this is rather hard to do.
Hi
I've been using your handler with the javascript files from the blueimp repository.
When a file is posted the handler returns an array of JSON objects with the details of the posted files, but the blueimp javascript expects an object with a single field "files" which contains the array.
So in WriteJsonIFrameSafe you have:
string jsonObj = this._js.Serialize(statusList.ToArray());
and I have:
string jsonObj = this._js.Serialize(new { files = statusList.ToArray() });
You can see in line 79 in jquery.fileupload-angular.js that the result should contain the files property
var files = data.result && data.result.files;
I wasn't sure if you've changed your the javascript to match your handler response or if its out of sync with the latest code from blueimp.
I know it's only a one line fix but if you think it applies then I can clone your repo and submit a pull request. It'd be my first real contribution to the GitHub community :)
Hello,
I am using this version of jQueryFileUpload for my .Net project. I want to know that if I send two parameter when uploading files?
Dear Friends,
I have a problem using this component. When I use this component on F.F, chrome and IE7+ , everything works as they should work.
The problem is when I use IE6 , and upload a file with the button, this error will shown on the page:
Error: Invalid JSON: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. Invalid at the top level of the document. Error processing resource 'http://localhost:56160/Upload.ashx'. Line 1, Positio...[{"thumbnail_url":"Thumbnail.ashx?f=cpuz_readme.txt","name":"cpuz_readme.txt","url":"Upload.ashx?f=cpuz_readme.txt","size":...
The file Already uploaded to the site but the error that has shown to user makes every thing wrong...:(
Hi i am trying to add a new button to add another function to upload picture via url links.
But somehow the button was unable to be themed.
Another question, how can i customize the filetransferhandler.aspx to handle my new button ? had been trying out but unable to.
Sorry if any inconvenience caused.
Thank you.
Hi,
Awesome sample by the way!
One issue I am having on firefox is that the delete all button is deleting files that where uploaded correctly, but files that failed to upload and displayed an error, are not cleared when selecting the delete all option.
Any advice you can offer is welcomed.
Thanks
Hola, quiero poner en práctica este código fantástica en mi aplicación MVC3. Pero cuando me refresque la página, los archivos subidos no aparecen más. ¿Puede alguien ayudarme con esto? Sólo quiero mostrar los archivos subidos.
empty file upload result in internet browser. Drag and Drop file upload not working IE, but select files working fine in IE also.
If I try uploading same file (i.e. same name), though only single file is sent to the server and replaced with latest (working fine), the list on the browser keeps on adding same file name, as a result the list in the browser grows, though actual upload is only 1.
I think the list should reset at each upload start.
input type="file" name="files[]" webkitdirectory directory multiple /
the above code is not supported in the IE, hence folder upload not possible.
First off, good job porting this project, very helpful.
One minor issue I've found - when the page first loads in google chrome, the call to ListCurrentFiles() in the ashx is failing.
I commented out the below line which seems to fix it. Not sure why its there in the first place.
context.Response.AddHeader("Content-Disposition", "inline, filename="files.json"");
The recent update to Chrome R16, has highlighted that a comma is not meant to be used as the separator in the content-disposition header (it rejects the header and thus the content - in this case the file list)
context.Response.AddHeader("Content-Disposition", "inline, filename="files.json"");
Should use a semi-colon instead:
context.Response.AddHeader("Content-Disposition", "inline; filename="files.json"");
when i try to select multiple file in IE then it is not selecting multiple file.it is allowing me to select single file.But when i run this in Firefox it is selecting multiple file.Can u guide me whr i am wrong.
This is nice. Could you please wrap the functionality to an asp.net mvc controller?
Hello! I have loaded the solution into VS 2010, and everything works perfectly. But when I deploy it to my server, in the exact state and layout I have it in VS, the thumbnails do not display (although the files do!) and the links are all broken (in the sense that any spaces have not been encoded). I have neither of these issues in my VS in debug mode. If it be a clue to fix the issue, I also cannot delete any of the files I have uploaded (I can upload just fine, however).
Hi
If you upload the same file more than once only the newest file exists - the older file is replaced
Thanks /Peter
HI
i have 2 qus
1-how can change .net example to load only image files
and if open another files like text show error and not load it
2-how can show image of file next the name هسفثشی خب یثبعمف (defualt state:for all file show "default_thumb.jpg"
Salve! Sharepoint 2010 runs on .net 3.5. If I change the framework for this project to 3.5, I get an error:
Error 1 'System.IO.FileAttributes' does not contain a definition for 'HasFlag' and no extension method 'HasFlag' accepting a first argument of type 'System.IO.FileAttributes' could be found (are you missing a using directive or an assembly reference?) ...FileTransferHandler.ashx.cs 147 32 jQueryFileUpload
I want to run this setup on the same application pool as sharepoint 2010. Any clues?
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.