file-upload

How can I upload large (30Mb) files in a ASP.NET application ? (VB) I've tried raising MaxRequestLength, but no luck..

How can I upload large (30Mb) files in a ASP.NET application ? (VB) I've tried raising MaxRequestLength, but no luck... I'm using the FileUpload control, I already googled this issue a bit, and people seem to solve it by raising MaxrequestLenght on the web.config file. I did that, and it didn't work. I also raised it on the code, and s...

How do you automatically trigger a file input from another event handler?

In our project, we have a drop down box with a list of actions. We need to somehow implement functionality where if the user selects a certain item in the drop down box and presses the button next to it, a file upload box will be triggered. However, if anything else is selected in the drop down box, it should not trigger the file uploade...

php image uploads

Hi Im wanting to accept image uploads onto my server. When a user uploads an image to the server I want to store its location in a database table. tblPictureStore: pictureid | serverlocation | caption | date added How can I do this? Also, How could I set up my add_Images form to quickly accept multiple uploads in one go, without know...

File Upload Control and GWT Look and Feel

Hello I'm writing my first GWT project. I have a form with label, file upload control and upload button but they look awful and too different in various web browsers. Also button from file upload control doesn't have the same style like GWT button control. And the other problem is that in Chrome Button for file choose is on the left?!? ...

jquery: how do I serialize file type input in jquery

Hi, I want to serialize file name of the file being uploaded in the input type file , but when I serialized the form in jquery I just got the input type text and others not the file - how do I do it? is it something jquery fails to achieve?? this is the html, [PHP]ask_add_xml.php" method="post" enctype="multipart/form-data" id="form_q...

Php Download script isn't working

Hi guys, I have a script which uploads files into an online directory and stores the file details in a database. The files when stored are renamed to the id of the entry in the database. Whenever a user requests a download, a simple SQL statement retrieves the file details from the database, the contents of the file are read from the da...

A generic error occurred in GDI+, possible server.mappath issue

I've narrowed down the issue I'm having to this block of code, where I am resizing an uploaded image and saving it. This works fine on my local machine, but when I run the site on the server, I get a generic GDI+ error that's coming from the "thumbnail.Save" call. if(fup_displayPicUpload.HasFile) { string ima...

Posted files not able to get the file name with path

Hi Everyone, The problem that I am having is on when I compile and run locally it works fine (i.e this "file.FileName" give me the file with the file name with path) but when I run the same code with the local IIS it doesnt work (i.e this "file.FileName" only give me the file name). can anyone please tell me whats going on. for...

PHP: Having trouble uploading large files

I am doing a file upload using PHP, which works fine for a file of size 2.8MB on my localhost - but not my Mediatemple GS host. Files smaller than 2MB work fine, but anything larger seems to not work... I am not getting any error message but when the upload finishes, the file is not found in the uploads directory... I googled around, an...

Is is possible to use the AsyncFileUpload from the AjaxControlToolkit in a .Net 2.0 project?

The title pretty much says it all. I have a project that for political reasons cannot be moved to a later version of .Net and would love to have a drop-in control for uploading files better than the old FileUpload control. I'd like to use the AsyncFileUpload control, but it's not in the latest version of the toolkit that is supported i...

WARNING: Target component for id thumbnailSelector not found

I am getting this warning in my jsf application when I upload an image through rich:fileUpload. <rich:fileUpload id="file" required="true" listHeight="50" immediateUpload="true" maxFilesQuanity="1" uploadData="#{entryHandler.uploadItems}" fileUploadListener="#{entryHan...

Allow file uploads for non-registered users

I am creating a service that allows my website visitors to create content (text) and save it so they can access it at a later time. However, users don't need a user account before they can use this feature. They just click "Try now" and use it. If they want to save their work, then that's the time they need to sign up. I am planning to ...

File upload and odd browser error

I have a .NET 3.5 website that is uploading files to a SQL Server 2008 filestream. This all works great until I hit a certain file size and I unexpectedly get odd error returns in the browser. In IE 7, if I upload a file with a size of about 100 meg, the browser returns after about 2 minutes with an error saying "Internet Explorer cann...

FileUpload.FileContent best practice

Hello! I pass FileUpload.FileContent stream to some method as parameter. There I actually just copy this stream to other and that's all. Can I just leave this stream or I must close it somehow? ...

How to use FileUpload in UpdatePanel?

I know that such question was has been many times already but I couldn't find any right solution for my problem. I have MasterPage1 with ScriptManager. There is MasterPage2 in it. In 2-nd MasterPage I placed Control with UpdatePanel. In this UP I placed FileUpload and SubmitButton: Master1(with SM) <= Master2 <= Control(with FU and But...

Verifying mime type of pdf files on upload in PHP

I am working on a project that requires file uploads. I want to make sure it's secure and that only PDF files are being uploaded. I am already checking file extension but i want to make sure the file really is a pdf file. What is the best way to check the mime type in php? I am using PHP 5.2.5 and can't seem to get fileinfo or mime_cont...

detecting failed uploads

Is it possible in PHP to detect when an upload failed because of filesize. I know about upload_max_filesize and post_max_size and set them to what i want but if a user doesn't see my file size limit (which is displayed in red) and uploads a large file it doesn't display an error. just takes a really long time. I have <input type="hidde...

Upload to CXF restful web service

I'm trying to implement apache commons fileupload in my cxf restful web service. For some reason, ServletFileUpload.isMultipartContent(...) always returns false; I've checked the content-type via: httpServletRequest.getContentType() and it returns multipart/form-data as expected. Anyone know what is causing the isMultipartContent method ...

What is the best way to store files in a (asp.net + wcf) web application

Hello everyone, I'm creating a web application using asp.net & WCF as 3 tier architecture, which is mostly looks like a social website. Users can register with the system and they can upload their profile images, documents, video clips etc. So, what i want to know is what is the best way to store those files? In the wcf side or web appli...

File Upload Deny Animated GIFs (using PHP/Zend Framework)

i am thinking i may want users to be able to upload static GIFs but not animated ones. say for avatar's as they may look ... unprofessional and distracting. is there a way in PHP or Zend Framework that i can validate a file upload that way? ...