[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] post file issues to php
From: |
kris Occhipinti |
Subject: |
[Bug-wget] post file issues to php |
Date: |
Thu, 18 Oct 2012 19:43:53 -0400 |
Hello,
I'm on Debian SID,
working with wget Version: 1.14-1.
I've created a php file on my webserver for uploading images.
I used the code from this page http://www.w3schools.com/php/php_file_upload.asp
Uploading to the site works find in the webbrowser using html form,
but I get an "Invalid file" when I try and use wget like this:
wget --post-file=1.jpg --header "Content-Type: image/jpg"
"http://myserver/upload_file.php"
I know I've uploaded files with wget before, but can't tell what I'm
doing wrong now.
I'm trying to upload the same file that I uploaded through the web browser
so, I don't think it's the file or the php code.
Any help would be great.
--
Kris Occhipinti
Don't give Microsoft the remote control. Don't use Windows 7.
<http://windows7sins.org>
- [Bug-wget] post file issues to php,
kris Occhipinti <=