file-upload

Backup application with single instance functionality

Hi dudes, Currently working on an application, that help you to take backup of the files in you machine at the server (hosted by the company itself), so that you can recover data after any hdd crash. I have implemented Single Instance feature, across the users. Single Instance : A file uploaded already at the server, wouldn't be uploa...

Unable to upload file to ftp server using php

I am trying to upload file to FTP server using php but it is not getting uploaded. Code: $response =<<<RESPONSE <cdm:Response> <cdm:header exportTime="{$export_time}" baseVersion="{$baseline_snapshot_id}" version="{$this->snapshot_id}"> <cdm:countryCode>{$this->domain}</cdm:countryCode> <cdm:descript...

How to do file uploads with PHP and the Zend Framework?

I am using Zend Framework 1.9.6. I think I've got it pretty much figured out except for the end. This is what I have so far: Form: <?php class Default_Form_UploadFile extends Zend_Form { public function init() { $this->setAttrib('enctype', 'multipart/form-data'); $this->setMethod('post'); $description ...

jQuery MultiFile - how to clear / reset ?

Hi all, I'm using the jQuery multi-file upload plugin found here: http://www.fyneworks.com/jquery/multiple-file-upload/ I don't see in any of the examples though a way to "reset" the file-picker, clearing out any currently selected items. Any one know how to do this? Thanks! ...

PHP: Storing file locations...what if overwritten?

I am currently using the Zend Framework and have an upload file form. An authenticated user has the ability to upload a file, which will be stored in a directory in the application, and the location stored in the database. That way it can be displayed as a file that can be downloaded. <a href="/upload-location/filename.pdf">Download</a>...

PHP: How to rename a file uploaded with Zend_Form_Element_File?

Form: //excerpt $file = new Zend_Form_Element_File('file'); $file->setLabel('File to upload:') ->setRequired(true) ->addValidator('NotEmpty') ->addValidator('Count', false, 1) ->setDestination(APPLICATION_UPLOADS_DIR); $this->addElement($file); Controller: //excerpt if ($form->isValid($request->getPost()) { $newFi...

Best way to post files asynchronously with ExtJS

Hi, I basically have a form that the users filled in, and in which it's also possible to attach files. It's really equivalent to gmail actually: the files are sent while you're still typing the information in the form, and when you click on the final submit button, it waits for the files to be all transferred and submit the final fields...

Invalid upload directory with CodeIgniter 1.7.2

I am attempting to create an image-upload form with CodeIgniter 1.7.2 However, when I attempt to upload an image, CI informs me the upload directory is invalid. To check this, I uploaded a file to the uploads directory called test.txt with the content Hello, World! I then echoed out the contents of it, and lo and behold, it says hello...

asp.net mvc: check content type of the uploaded file 'text/plain' or 'text/csv', I always get application/octet-stream instead

I want to verify the type of the uploaded file, that's how I do it: [AcceptVerbs(HttpVerbs.Post)] public ViewResult GetDataFromFile() { var file = Request.Files.Get(0); ... if (file.ContentType != "text/csv") { ModelState.AddModelError("FileInput.File", "The file uplo...

I can't solve this session related issue!

Hi there, I am using Zend Framework and 3rd party application written in php for file upload. Upload process is ajax like, and I have annoying problem probably caused by this app. Problem is that upload application somehow destroys my Zend_Session! Here is the error which I am getting (with firebug console): http://pastie.org/738834 ...

Modal popup File Upload

Hi, I use Eric martin's contact form modal popup in one of my personal projects. I wish to add file upload to it, however when I try to get the file, I'm able to view the file. I'm pretty much new with Jquery. I tried couple of AJAX Upload and uploadify, thats also didnt work. Please suggest me some solution to proceed. My Frontend is...

FCKeditor Upload feature not working, no error

Using FCKeditor (2.6.5) When I use the upload feature it acts as if it has worked (no errors) but does not upload a file. I can view other files in the upload folder with the file manager that I ftp in and can also create folders with fck. Any thoughts? ...

Uploading file using HTML

Can anyone show me how to create an HTML page that allows to upload files? It will be really appreciated. ...

Mongrel : Socket read returned insufficient data

I'm relatively new to RoR (my first experience far from pleasant) and just stuck with a simple file upload application. When I upload file I can see a temp file created on the server but it's smaller than the file I upload. I assume I get this error 'cause browser just closes connection on me before the whole file gets transmitted ( it h...

Multiple file upload like orkut style with asp.net mvc..

Hai Guys, Recently i am working with asp.net mvc... Now i want to upload multiple file uploads like orkut style with asp.net mvc ... I dont know how to get started ... ...

How to Download A file stored in SQL DB in Binary Format

Hi, I am simply storing uploaded file into a binary field in SQL Server but I also need to allow users to download it with Asp.NET. How can I do that ? Thanks in advance. ...

How can I create my ASP.NET MVC controller actions so they accept Files?

I've been working all weekend on a Messaging system for my website so users can send and receive messages on my site internally. I have my table schemas worked out, and right now I can send basic messages to different users. Now, I'm working on the attachments portion. How can I create my action methods so that they accept Files? Ide...

how to allow a user to upload a spreadsheet in asp.net mvc

i want a user to have file picker and then choose a spreadsheet which will then be parsed by a controller action. are there any examples of how to do this? ...

codeigniter multiple file upload

Hello, I am trying to get a multiple upload library working for my codeigniter based website, I have it working almost but I have a slight problem if I upload more than one image, the file extentions get screwed up, for example, if I upload three JPEGS, I get this in my uploads folder, image1.jpg image2.jpg.jpg image3.jpg.jpg.jpg I ...

ASP.NET File upload - Validation

In our application , we are using asp.net FileUpload control to upload files. Requirement is , user should be able to upload only ".doc, .xls , .pdf" files. System should not allow him to upload other files. To achieve this we are validating the extension of the uploaded file. If it is not valid then throwing error message.. this wor...