Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UpLoading function in Apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Mon Dec 15, 2003 10:43 pm    Post subject: UpLoading function in Apache Reply with quote

My Subject line needs some explanation.
I need an UpLoad feature on my homepage. While I am working at home I want to be able to upload files to my work PC. If possible even password protected.

Any sample files?
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Mon Dec 15, 2003 10:51 pm    Post subject: Reply with quote

If you have PHP installed you should be able to use this. Just stick it in a directory only acessable via https, stick a .htpasswd in there, and everything should be hunky-dorey.
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 945
Location: USA

PostPosted: Tue Dec 16, 2003 12:48 am    Post subject: Reply with quote

dice wrote:
If you have PHP installed you should be able to use this. Just stick it in a directory only acessable via https, stick a .htpasswd in there, and everything should be hunky-dorey.

I just had to change
Code:
$_SESSION['message'] = "";
$uploads = false;

to

$_SESSION['message'] = "upload";
$uploads = true;

The problem is... I can only upload text files. Everytime I try a different format I get "The document cotains no data".
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
indros
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2002
Posts: 139

PostPosted: Tue Dec 16, 2003 11:43 am    Post subject: Reply with quote

I find this happens when the file size is larger that what apache defines it can handle.

Try tweaking the LimitRequestBody directive in the configuration files. I found it in the mod_php.conf.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum