file-upload

Upload CSV and replace data with foreign keys

Hi I want to upload data through CSV files in my contact management application. The CSV file structure is like this: Name, Phone, City John Doe, 555-555-5555, New York While the table structure in the db is like this: name, phone, city_id In the database, the city name is stored in another table and the foreign key is referenced ...

PDF upload by user in Drupal

Hello all, I am developing a site for an International Conference. I want the registered users to upload their research papers in pdf format using a form. I have no previous experiences working with a CMS. ...

SL 4: simple file upload, why is this not working?

Hey guys, I am not getting any exception in the following code, however I also don't see the file which is suppose to be uploaded to the server (in this case a localhost) - could someone please point out the mistake? As an add on, I need a simple silverlight file uploader with a progress bar, but I am having a really hard time try usin...

PHP File Upload greater than upload_max_filesize and error

How can I catch an error on a file uploaded to my web server that is greater than php upload_max_filesize? My question is similar to so/large-file-upload-errors-with-php although my memory limit is set to 512M so the resolution that question used will not help me. I am trying to upload a file 6.9MB for example and my upload_max_files...

PHP Upload Form, "Notice: Undefined index: upload"

hi everone. I searched around google and stackoverflow, but didnt quite find the right answer. im using a form. Within this form i have a simple uploader <form method="post" action="uploadImage.php" enctype="multipart/form-data"> <input name="upload" id="upload" type="file" /> <input name="add" type="submit" id="add" value="add">...

uploading attachment - restricting file size - IE cannot display the webpage

i am trying to test to see if i get an error if i upload more than 3mb file size but instead i get the IE error (see below) here is the code i have. - what i want is if the user try to upload more than 3mb file size display an error. if (fUpload.HasFile) { // Get the size in bytes of the file to upload. int fileSiz...

Multiple file uploader with jQuery in ASP.NET

Hi, I am looking for a multiple file uploader by which I can select(CTRL+mouse click in File browse window) and upload multiple files without postback. I don't want to use any flash component(like SWF uploader) for it. I came to know that with normal Ajax request we can't upload files and we have to fake it through an iframe. Could you ...

Safari/win2008 upload focus not quite modal

In win2008 x64, Safari doesn't look as pretty as it does in XP/Vista/win7 (see screenshot below). It also doesn't seem to work as well. Try this: Go to http://www.cs.tut.fi/~jkorpela/forms/file.html Scroll down to the "Choose File" button, and click it If you are using win2008, recoil in horror as you notice that the "my stylesheet" li...

HTTP file upload: Can I rely on the browser always sending a file name?

According to this great article about HTTP uploads by Scott Hanselman, the browser typically sends a file name with the file's contents. Can I rely on the file name always being transmitted or do I have to give the user the option to enter a name if none was submitted? (If a name was submitted I do not want to prompt him for a specific r...

How to trim uploaded file name's length to 10 chars when using Drupal CCK file fields?

I uploaded 1 file and name it "test-test-test-test-test.php". It create problem in my layout. my layout is mess up. so if i upload file name up to 10 char then its fine. ...

Cancel Upload Operation ASP.NET

Hi guys I have a problem which i need some help on. I am using asp.net 3.5 to build a video website. Users can upload their videos to my site. Now here is were i need help, when the user is uploading a video and trys to open another page before the page is complete i want to either cancel the upload or warn the user that by navigatin...

Can we add multiple files using a single ASP.NET FileUpload control?

We need to upload multiple files using ASP.Net in one go. One option is to use the ASP.Net FileUpload control but it seems that it can't upload multiple files in one go. Any other option or ASP.Net FileUpload control can do multiple uploads in one go with some tuning? ...

JSP/Servlet: Uploading File issues

Hi , I have the below code: boolean isMultipart = ServletFileUpload.isMultipartContent(request); out.print(isMultipart); // Create a factory for disk-based file items FileItemFactory factory = new DiskFileItemFactory(); // Create a new file upload handler ServletFileUpload upload = new ServletFileUpload(factory); // Parse the request...

Improving upload speed by sending chunk of bytes

I'm developing an android video uploading app and uploading large amounts of video is a problem, I get different type of exception sometimes (host not resolved, pipe broken), I do a multipart POST but I have a feeling if I upload chunk of bytes one at at time that'll increase upload speed as well as solve connection timeout and these typ...

File upload using EXTJS and PHP

I upload my file using EXTJS and it's saved in the server the problem is that I can't get a success function or even the waitMsg is always running Here is the Code EXTJS code : var fp = new Ext.FormPanel({ fileUpload: true, width: 500, frame: true, title: 'File Upload Form', bodyStyle: 'padding: 10px 10px 0 10px;',...

How to specify file extension in ASP.Net upload control?

Hi, Is there a way to specify a file extension for ASP.NET upload control? E.g. I want to upload images with jpg and png extensions only. I can implement this easily for a windows application, but struggling with ASP.Net Thank you ...

File Upload Limit Issue in asp.net mvc

I have fixed my file upload file size as 50MB using the following code < httpRuntime executionTimeout="60" maxRequestLength="51200"/> in Web.cofig file. When i am uploading more than 25MB file it displays error message as "file or directory not found". How to fix this issue? ...

Upload files, form within form

Hello everyone and thanks in advance. I have a problem and I have 2 form into one another, the domestic form is to perform a file upload. As I can do to make when sending in internal form not run the main form. <form name="x" method="post" action="xxx.php"> .... <form action="" method="post" enctype="multipart/form-data" t...

What should I check for when I cannot upload files into filefield CCK fields?

I have recently moved a drupal site. (both servers run on a debian based LAMP stack) Everything works great here, including the uploading of images via a CCK filefield. Original url: dev.example.com/foo Deploying it to a test folder on the production server to a test folder for an environmental shakedown cruise lead it here: www...

404.13 response ignored by the browser

I'm using <requestLimits maxAllowedContentLength="[my limit]"/> to limit the size of file uploads over http. This works fine, and returns a 404.13 (Content length too large) when the limit is exceeded. I'm logging it in my global.asax as follows: private void Application_EndRequest(object sender, EventArgs e) { if (Respo...