Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-26-2006, 02:38 AM   #1
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
mod_python file upload

Hello. I am in the process of developing a web application for a client. The site will not be large, but important. I am new to mod_python and have figured out how to read a file that has been uploaded by http from the request object. Since the server is intended as a storage space for these files, I do not need or want to process them when uploaded. I merely want them in a file on the hard drive. I can already do this by reading the uploaded file and dumping it's contents into a predictable location, but this is inefficient. I would like to know if there is anyway to simply tell the system to make a copy (or move) the file to a more permanent location.

Does anybody know how to do this? Additionally, does anybody have any good suggestions or tutorials that you know contain good information about this type of application (or other tricks in mod_python that are not immediately obvious)?

Thanks in advance.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload file through Telnet the_imax Linux - General 6 12-11-2005 04:12 PM
Can't upload 5mb file. Need help. newlinuxnewbie Linux - General 2 11-05-2005 07:39 PM
File Upload through SSH kanagaraj Linux - Software 5 09-26-2003 02:59 PM
File upload problem saravanan1979 Linux - Newbie 4 03-29-2002 03:59 AM
File upload via PHP!!! saravanan1979 Programming 0 02-14-2002 02:55 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration