file-upload

Why Opera is using Firefox's Cookies

Hello, I have two open sessions on different browsers (Firefox, Opera). Both of them run on different user accounts. When I navigate through the administration page, the cookies are ok. But when I try to upload some images, the uploading php script receives the same cookies as in Firefox. This doesn't happen if I use Internet Explorer ...

Javascript + Asp: FileUpload and CustomValidator

Hi, How can I create a CustomValidator on Client Side for validating my file path from FileUpload? Thanks ...

ASP.Net MVC File Upload Post Parameters

I am trying to go to a view with a speicifed batchId parameter wrapped in a ViewModel, pick a file to upload, get the uploaded file back and store the file data w/ the associated BatchId value in a database. When the form is submitted I don't know how to get back the viewmodel and the PostedFileBase so that I can get the BatchId value. ...

How do I upload a 5 MB file to App Engine BlobStore using XmlHttpRequest 2.0?

We all know that App Engine limits you to 1 MB for most input/output requests. But with the recent BlobStore API, you are allowed to upload large files in full by POSTing to a dynamically generated URL. According to the sample, here is what the HTML form would look like: self.response.out.write('<html><body>') self.response.out.write('...

File upload with Yii's ActiveForm

I am trying to use Yii's ActiveForm to create a basic registration page with an image upload field. However, I am running into problems. I am using the following code to create the form tags: $form=$this->beginWidget('CActiveForm', array('id'=>'activity_form', 'enableAjaxValidation'=>true, 'stateful'=>true, 'enctype'=>'multipart/form-...

is i possible to bypass the checking of uploaded file via is_uploaded_file() ?

i need to upload file without using a form. i need to do this to make automated upload if a user click a button... i have create $_FILES['thefile']['name'] and $_FILES['thefile']['tmp'] but it still not working. is it possible to do uploading without a form ? btw, i use wordpress. and wp use is_uploaded_file() to check whether the fil...

UIImage uploading using NSMutable request

I need to POST a request. The request has 3 parameters, 'email_id' , 'location' and 'image_data'. The value for 'image_data' contains NSData jpeg representation of a UIImage. The request must be submitted using a content type of multipart/form-data. How can I create the NSMutableRequest for posting this request? How should I set the boun...

Upload file php mail

I'm using mail() function on my feedback page. There are 3 fields: Name, Mail and Message. Want to add new field - File, with the ability to upload files and send them to my email. Some limits: .zip and .rar files only allowed file can't be more than 200kb in size. How to do this and prevent security holes? ...

How to upload a file to a server via FTP using R ?

The title says it all. ...

Read an excel uploaded through FileUpload

I have an ASP.NET web application that has a fileupload control to allow users to upload an excel file for it to read. I'm using an OleDBConnection and I feel like my connection string or querystring is wrong since the app keeps throwing OleDBExceptions at me (ouch!). What would be a good way to save or access the uploaded files? Here...

drag and drop uploading in a multipart form with data in other input elements

There is a form with enctype="multipart/form-data". In the form, there are several input text fields, a file field and a "save" button. I want to replace the standard html file field with a "drag-and-drop-uploading" widget. When a user drag and drop a file from the desktop to the widget, it shows the filename (and maybe other information...

ASP.net c# FileUpload, don't overwrite file

With the following code: protected void Button1_Click(object sender, EventArgs e) { if (FileUpload1.HasFile) { string fileExt = System.IO.Path.GetExtension(FileUpload1.FileName); if (fileExt == ".jpg" || fileExt == ".jpeg" || fileExt == ".gif" || fileExt == ".png") ...

file upload control problem

i am using file upload control in server side when iam trying to get the file it is showing no file present <asp:FileUpload ID="upldDocument" runat="server" /> string fileExtension = System.IO.Path.GetExtension(upldDocument.FileName); if (upldDocument.HasFile) { } i am getting a empty string as file extension and upldDocument.HasFile ...

IE8 is submitting the form to the current page

It's working in all other browsers, and it was working on IE8 before, but I did some code cleanup and moved some things around, and now its submitting this form to it's self. It's an "ajax" uploader (yes, not really ajax, but you know what I mean) Here is the JS: function file_upload($theform,item_id){ $theform.attr('ACTION','io.cf...

IE8 only submits with button, not submit?

So, this is strange, and it was working for me about a month ago, before I made a bunch of code updates. Anyways the issue is the live submit handler wont even run in IE8, however, if i run it on a button click, it works. See below: HTML <label>Add Attachment</label> <form class="file_upload" method="post" enctype="mult...

Where saves files after php upload?

I know, how to use upload. Is I think right, that files is in temporary folder in HTTP server after upload? ...

How to surpress escaping in rich fileupload?

Using richfaces fileUpload component has some issues when displaying custom labels containing chars like ö, ä, ü ... DO_ADD=Hinzufügen <rich:fileUpload id="upload" fileUploadListener="#{controller.upload}" maxFilesQuantity="1" immediateUpload="true" allowFlash="false" acceptedTypes="csv" addControlLabel="#{msgs.DO_AD...

php uploding file

hi i just want to know that if i am using move_uploaded_file function and use two argument first as the name of file and second as the destination. Normally i have uploaded many files with class uploader but now i want to give the destination as http://www.mydomain.com/testing/ Although i have given 777 permision to this folder but when...

Need to upload file, and use it in the pre-init event

As it states, I need to upload a file, and then use it in the pre_init event of a second page. Server lifecycle prevents this (as pre_init happens before the event handlers), that's fine, so the only way I can see around is to use page1 to upload the file, then do a response.redirect to the page2 where I can use the file in the pre_init....

How can I remotely upload files to Amazon S3?

I am looking for a way to transfer files from a server to Amazon S3 bucket, without first downloading the files to my computer. All of the files I plan to transfer can be accessed publicly (e.g. http://something.com/file.ext). Everything I tried only allows me to directly upload files from my Mac to S3. P.S. Although I have access to wi...