upload

How to avoid "Unable to establish loopback connection" with JRuby and net-sftp gem

It seems that JRuby cannot handle several file uploads using the net-sftp gem. After successfully uploading several files I get the following exception: IOError : Unable to establish loopback connection The same code and gem under MRI Ruby works fine. Any suggestions? ...

move_uploaded_file doesn't yield error, but doesn't move item

move_uploaded_file($_FILES['imgUploader']['tmp_name'],"images/".$name.'.'.$imgExt) None of the arguments return nil or anything, but it doesn't move the item to the specified folder. Do I have to be more specific with the tmp_name location? I've tried different chmods to see if it works, but 775 and 755 do not work. It worked locally,...

php image upload

which is a better place to upload images to? A database or in the web directory? And why? ...

Ajax file upload, iFrame and calling parent method from changed content

Hello, I'm having a technical issue in a web project, involving an Ajax file upload. I'm using the well-known "fake Ajax iFrame technique". The problem is that it is necessary for the page that calls the upload method to receive the database primary key of the inserted record, made with the upload. So what happens is : we have a ...

PHP directory error - open_basedir restriction in effect.

Hi guys, I've got some PHP code that'll create a new file in a set directory: $target_path = "reports/" . basename($Report_Filename) . ".php"; if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) { /* code here */ } It was working perfectly, and has done for some years now, unfortunately we've just moved across t...

XmlHttpRequest corrupts headers in Firefox 3.6 with "Content-Type:multipart/form-data"

I'm working on "multiple ajax uloader". Works fine in bleeding edge browsers (Chrome 6, Firefox 4). But in Firefox 3.6 I must manualy create output string to be sended, cos this browser doesn't support FormData object. I followed many tutorial, especialy this. Author notify about correct setup of headers & content of body to be sended. ...

use of upload class in codeigniter - Model or Controller ?

Hi, Quick question about CI. I have a view with a form, several text input fields and a file upload. I want to be able to take the input from the text fields, save it to the DB, and then upload the image. I've achieved this by having the upload code in a controller, and if the upload is successful, a call to my Model is made to update...

Apache Commons File Upload - Stream ended unexpectedly

Well, I have to say that so far, this one has me stumped. Our web application, which is running in Tomcat 6.0.18 is failing during file upload, but only when the client machine is a windows machine, only for some machines, and for all browsers, not just IE. There is a stack trace in the logs, which seems to indicate that the client eith...

Uploading large files with ASP.NET: what are the best practices?

What are, nowadays, the best practices for uploading a large file (which may cause a timeout) with ASP.NET Web Forms and/or MVC? Increase Server.ScriptTimeout (only for the specific POST request); Use some flash client-side uploader like swfupload ( http://swfupload.org ) or plupload ( http://www.plupload.com/ ), but Flash uploads have...

Image uploading with PHP

I've been building an event promotion site in PHP and MySQL for the past couple of months where anyone can sign up and add their local event's details along with a poster, which I resize. As it stands, I've got the whole process working fine locally and on a hosting service, but before the site goes live I have a couple of questions on...

PHP file upload form cannot submit a POST variable?

I have a PHP file upload form with method="post" enctype="multipart/form-data" I am trying to do a <input type = "hidden" name = 'something' value = "something"/> along with the input for file upload, but I am not able to get the value of 'something' in the upload handling script like $_POST['something'] Is it not possible to use POST ...

codeigniter file upload - optional ?

I'm sure this is simple but I can't see how to make uploading a file with CI optional. If you leave the file input box empty, the error "You didn't choose an upload file" appears. The reason I want it to be optional is that my form edits a directory type listing, and I don't need to upload the image each time I edit the listing. Is th...

I need to take screenshots and upload to a webserver, what technology should I use?

I am building a peice of software that needs to allow a user to take a screenshot of his/her computer which will then be uploaded to a web server. What technology should I use? I don't think js has access to the appropriate resources, but would like to keep it browser based. Help? ...

PHP Upload Form: Why isn't my multipart/form-data form sending any POST data? (LARGE FILE UPLOADING)

i'm uploading a 70mb ZIP file. perhaps debugging may be putting things out of sync? when i don't have the file in the file input, i get the post data, but when i do, the post data is empty. <form method="post" action="load_statements.php?action=load" id="form1" enctype="multipart/form-data"> i have fields (with the name attribute) and...

php client content uploads (cms)

HI I'm building a php based website and wanted to know if there any way to allow my client to upload their content from a word document (or any word file)? The upload should replace (or add) content to a page, allowing her to update her content. I know this is some sort of cms, but I don't know where to begin. I currently have an artic...

Background Intelligent Transfer Service (BITS) Upload Problem

Hi friends, I have a problem while using Background Intelligent Transfer Service (BITS). I have a code that Upload/download the file in virtual directory. I have tested that code in my local domain on IIS6 its working very fine but when I am trying to upload the file to the external network its not working its give the error “request URL...

Uploading a File via SCP with Maven fails

I try to upload an ear created by maven to an application server using scp. When I tried to run mvn wagon:upload-single But I get the following error: [ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:upload-single (default-cli) on project de.volkswagen.dps.ear: Unable to create a Wagon instance for nu...

Upload file onto Server from the IPhone using ASIHTTPRequest

Hi I've been trying to upload a file (login.zip) using the ASIHTTPRequest libraries from the IPhone onto the inbuilt Apache Server in Mac OS X Snow Leopard. My code is: NSString *urlAddress = [[[NSString alloc] initWithString:self.uploadField.text]autorelease]; NSURL *url = [NSURL URLWithString:urlAddress]; ASIFormDataRequest *req...

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...

What is an easy way to upload an image into a database in rails on heroku?

I have an application which has the requirement, but infrequent usage, of uploading an image for use in other parts of the application. It's not something that is done frequently, nor is it frequently viewed (such as a photo). It is an image which is then sent through an API to print and deliver as a postcard. Initially I used papercl...