Hi,
A snippet of code could help, but I recently experienced two problems with uploading
and gaining the information.
Are you using the correct ENCTYPE for the upload, along with using POST (GET doesn't
work).
Also, if you are trying to us the information from inside a function, I had to either
Let us see the form code fragment in your HTML page and the
PHP code that accesses the variables...in order to see where
the problem is.
-Arne
> -Original Message-
> From: Matthias Roggendorf [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, May 13, 2001 8:15 PM
> To: [EMAIL PROTECTED]
> Subje
Unless you're using PHP3, I'd try using $HTTP_POST_FILES variable as
suggested in http://www.php.net/manual/en/features.file-upload.php.
Chris
--
"... perhaps yer just such a man you put an embarasing fire in her loins"
- Noah A.
On Sun, 13 May 2001, Matthias Roggendorf wrote:
> Hi,
> s
Hi,
thanks for the responses! Here is the code snippet:
The form:
Send this file:
The PHP part:
if (is_uploaded_file($userfile)) {
copy($userfile, "./");
} else {
echo "Possible file upload attack: filename '$userfile'.";
}
It always runs into the file attack line.
When I read out
Is your file greater than 1000 bytes?
If it is, this is the answer: the file you try to upload is too large.
Increase the limit (beware of the built-in limit of PHP - in php.ini)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
Hi Matthias,
well, for starters, from that code snippet your max upload size is less than
a kilobyte. So "large files" will not even stand a chance of getting
copied. Remeber that 1024 bytes is 1Kb, so if you wanted to limit to 100Kb,
the max_upload would be 102400. You ideally need to specify
Increase your file size limit from 1000 or only the file size smaller or
equal to 1000bytes will be uploaded.
DT
- Original Message -
From: "Matthias Roggendorf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 12:36 PM
Subject: Re: [PHP] F
]
Cc: PHP User Group; Matthias Roggendorf
Subject: Re: [PHP] File upload
Hi,
A snippet of code could help, but I recently experienced two problems with
uploading and gaining the information.
Are you using the correct ENCTYPE for the upload, along with using POST (GET
doesn't work).
Also
Try this:
--upload.php--
> -Original Message-
> From: Wilbert Enserink [mailto:[EMAIL PROTECTED]]
> Sent: 2 iulie 2001 17:08
> To: [EMAIL PROTECTED]
> Subject: [PHP] file upload
>
>
>
> Hi all,
>
> i'm using php version 4.0.5 and i'm playing around with the
thanx adrian.
I humbly bow for da masta :-]
Wilbert
- Original Message -
From: Adrian Ciutureanu <[EMAIL PROTECTED]>
To: Wilbert Enserink <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 02, 2001 4:19 PM
Subject: RE: [PHP] file u
> How can I, using:
>
> specify the file extension.
> I want the user only to upload *.jpg.
You can only check $userfile_type to detect the type of uploaded file. You
can specify nor extension to browse dialog neither default path for
browsing... Security, you know
Valentin Petruchek (aki Zliy
you could write a bit of JavaScript to run on the form's onSubmit event or
even the fields onBlur event. Then in your JavaScript, parse out the file
name and extension to validate. It's not 100% accurate since users could
rename any file to have a JPG extension, but it works for the majority.
The official way to do this would be using the "accept" attribute:
accept = content-type-list [CI]
This attribute specifies a comma-separated list of content types that a
server processing this form will handle correctly. User agents may use this
information to filter out non-conforming files when
Hi Balaji,
> I am trying to upload a file from remote machine.
> Could you please help out me.
Two things:
> upload.html
> -
>
This also needs to have a maximum file size specified:
> upload.php
>
In this script, you'll want to copy $file to "/pa
Hi,
Saturday, December 14, 2002, 1:03:05 PM, you wrote:
MK> Hi everybody,
MK> I'm trying to upload a file using the following scripts, but it doesn't
MK> work, it actually doesn't get through the first line of PHP script at all
MK> and displays "a problem has occured" message. I'm running the scr
Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile
variable at all in PHP script, even thought the globals are ON...
You are missing this bit:
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 14 December 2002 11:35, Tom Rogers wrote:
> You are missing this bit:
>
>
I am curious as to why so many people say this in response to file upload
problems?
In practice, none of my upload forms have that "missing bit" but they work
perfectly well using a diverse range of browser
what version of php are you using?
- Original Message -
From: "Miro Kralovic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 14, 2002 3:52 AM
Subject: RE: [PHP] File Upload
Thanks Tom, but still no luck.. it seems like it doesn't reco
A guess, but is the tmp dir set in php.ini??
Edward Marczak wrote:
> OK - I've read the manual, looked at sample codeand I sadly am
> missing something.
>
> I'm doing (basically) this in my form:
>
> method="post" name="replysub" id="replysub">
>
>
>
> On the page it's submitted to, just
> -Original Message-
> From: Edward Marczak [mailto:[EMAIL PROTECTED]]
> Sent: 30 May 2002 03:27
>
> OK - I've read the manual, looked at sample codeand I sadly am
> missing something.
>
> I'm doing (basically) this in my form:
>
> method="post"
> name="replysub" id="replysub">
>
On 5/29/02 10:39 PM, "Gerard Samuel" [EMAIL PROTECTED] pressed the keys
forming the message:
> A guess, but is the tmp dir set in php.ini??
Yeah - sorry, I should have said that in the first place.
--
Ed Marczak
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
On 5/30/02 8:13 AM, "Ford, Mike [LSS]" [EMAIL PROTECTED]
pressed the keys forming the message:
>> -Original Message-
>> From: Edward Marczak [mailto:[EMAIL PROTECTED]]
>> Sent: 30 May 2002 03:27
>>
>> OK - I've read the manual, looked at sample codeand I sadly am
>> mis
I've solved this kind of problems with three pages:
1. Form
2. Insert / Update data
3. Information about insert / update
Niklas
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 15:34
To: [EMAIL PROTECTED]
Subject: [PHP] File Upload.
Hi
This is exactly how I solve the problem as well, good to know I'm not the
only one with that idea. That must mean it wasn't that bad of an idea.
Dna
-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 6:52 AM
To: Php-General
Subject
> if(!userfile)
>echo "ERROR";
>
> $filelocation="/tmp";
Does C:\tmp exist?
>
> copy($userfile, $filelocation)
>
> The message I get in my browser is:
> Warning: Unable to open 'C:\\Documents and
> Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
> file or directory in
> > Warning: Unable to open 'C:\\Documents and
> > Settings\\vlad\\Desktop\\satellite\\florida.jpg' for reading: No such
> > file or directory in /var/www/kulchitski/btl/_talkroom_submit.php on
> > line 15
Well it says "Unable to open".
My guess is the file u want to upload doesn't exist.
What d
I guess, you don't specify the enctype in the form you wrote.
Do you write like this?
.
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
This sounds similar to what I am having, but not exactly. What version
of PHP are using, and on what platform?
My problem is the files don't actually appear on the filesystem, yet all
of the internal functions in PHP that allow me to manipulate the files
appear to "work".
I'm using v4.1.2, and I
Try to incerease 'max_execution_time' in your php.ini file - if your
connection is too slow, script execution time expires before the file is
uploaded. Increasing max_execution_time might help.
Try to increase max_filesize in your upload _form_, too.
Slavko
On Thu, 19 Jul 2001, Marcus w
Quoting Gerard Samuel <[EMAIL PROTECTED]>:
> Hey all, Im running freebsd 4.3, apache 1.3.20, mysq.3.23.39, php 4.0.6.
> Im trying to figure out file uploading.
> If I echo $pic, $pic_name, $pic_size, $pic_type, after the form is
> submitted, everything echoes correctly.
>
> In my script I have =
Phil, thats why you get the big bucks.
Dammit, I was messing around with this all day.
Thanks it works now.
Gerard
Philip Murray wrote:
> Quoting Gerard Samuel <[EMAIL PROTECTED]>:
>
>>Hey all, Im running freebsd 4.3, apache 1.3.20, mysq.3.23.39, php 4.0.6.
>>Im trying to figure out file u
hehe, I forgot.
I'm getting this error messagem:
-
Warning: Unable to open 'F:\\Augusto\\Augusto.wri' for reading: No such
file or directory in /home/httpd/html/admin/upload.php3 on line 5
--
regards,
Augusto Cesar Castoldi
On Tue, 3 Apr 2001, Delbono wr
I get this error message:
Warning: Unable to open 'F:\\Augusto\\Ws_ftp.log' for reading: No such
file or directory in /home/httpd/html/admin/upload.php3 on line 5
regards,
augusto
On Tue, 3 Apr 2001, Andrew Rush wrote:
> on 4/3/01 1:04 PM, [EMAIL PROTECTED] splat open and thusly melted:
>
> Is there any way not to write those line into the uploaded file?
It's a bug in 4.0.4pl1 on (AFAIK) RH7 and Apache. Will be fixed in 4.0.5.
You can't avoid them, but use something like the following to strip them
out:
/* void fix_broken_header(reference file)
* Incorporates fix for problem wit
Ali Reza Sajedi wrote on 30/01/2010 12:27:
UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP
5.0.3.
Has anyone encountered such a problem or has a clue as to what the cause
could be?
What does "print phpinfo()"; tell you about the upload_tmp_dir?
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi wrote:
> Hello,
>
> When uploading a file the variable $_FILES['userfile']['tmp_name'] is not
> set and when debugging I get the following error although /tmp folder exists
> and the permissions are set to 777:
>
> $_FILES['userfile']['error'] = 6
>
-
From: Eric Lee
To: Ali Reza Sajedi
Cc: phpList list
Sent: Saturday, January 30, 2010 1:21 PM
Subject: Re: [PHP] File Upload
On Sat, Jan 30, 2010 at 7:27 PM, Ali Reza Sajedi
wrote:
Hello,
When uploading a file the variable $_FILES['userfile']['tm
4 this malfunction is now observed.
>
> Any idea?
>
> Kind regards
>
> Ali
>
>
> - Original Message -
> From: Eric Lee
> To: Ali Reza Sajedi
> Cc: phpList list
> Sent: Saturday, January 30, 2010 1:21 PM
> Subject: Re: [PHP] File
http://www.hotscripts.com/Detailed/24113.html
take a look at this.. perhaps you can reverse engineer it
"William Stokes" <[EMAIL PROTECTED]>
24/03/2005 09:18
To
php-general@lists.php.net
cc
Subject
[PHP] file upload
Hello,
I'm (slowly) learning how to make a file upload stuff with ph
Okl I can't reverse engineer that...
I just need to know how to set the path.
now I have it like this and it wont work. $fileame comes from a form.
if (copy($filename, "/imagedir/" . $filename_name))
print "upload succesful!";
"Tristan Pretty" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL
Never mind. I got that sorted out! Thanks anyway...
-Will
"William Stokes" <[EMAIL PROTECTED]> kirjoitti
viestissä:[EMAIL PROTECTED]
> Okl I can't reverse engineer that...
>
> I just need to know how to set the path.
> now I have it like this and it wont work. $fileame comes from a form.
>
> if (
William Stokes wrote:
Okl I can't reverse engineer that...
I just need to know how to set the path.
now I have it like this and it wont work. $fileame comes from a form.
if (copy($filename, "/imagedir/" . $filename_name))
print "upload succesful!";
Don't use copy(), use move_uploaded_file()
See
I might have asked this already but I am still ignorent ;-)
How to check if a same name file already exists in a upload directory
when
uploading new file?
Use the appropriately named file_exists() function.
L.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
> How to check if a same name file already exists in a upload
> directory when uploading new file?
>
Use the file_exists() function (oddly named, I know).
http://us4.php.net/manual/en/function.file-exists.php
-M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
On Mon, 2005-04-04 at 17:07 +0300, William Stokes wrote:
> Hello,
> I might have asked this already but I am still ignorent ;-)
>
> How to check if a same name file already exists in a upload directory when
> uploading new file?
>
> Thanks
> -Will
>
http://www.php.net/file_exists
-Robby
--
> Every body , I want to make a provision for the suer , by which , they
can
> select number of files from a list box and upload them to the server
in
> PHP.
They have to select each file individually. Each file must be uploaded
through it's own input element.
The details of how to do these t
You need to check the following variables:
$_FILES["userfile"]["tmp_name"];
$_FILES["userfile"]["size"];
$_FILES["userfile"]["name"];
$_FILES["userfile"]["type"];
Ciao
Francesco
- Original Message -
From: "Kenneth Suralta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, Febru
Can anybody help me with file uploading, again...
I tried uploading a file through...
but, on project_save.php, the
$HTTP_POST_FILES["project_file"]["size"] is zero(0) , and
$HTTP_POST_FILES["project_file"]["tmp_name"] is an empty string.
i checked,
$HTTP_POST_FILES["project_files"]["error"
> Can anybody help me with file uploading, again...
Have you tried using the fairly simple example that is given at
http://www.php.net/manual/en/features.file-upload.php yet? I've found
that starting with this example and then adding all the extras tends to
work well when you've got problems.
Never mind. I found the problem. I was just stupid enough to forget about
escaping the backslash.
/Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> $uploaddir = 'C:\Inetpub\wwwroot\pix';
> $filnamn=$_FILES['userfile']['name'];
> I thought of just adding a backslash at the very end of the $uploaddir
> variable but that just leaves me with this error-message instead:
>
> Parse error: parse error, unexpected T_STRING in
> c:\inetpub\wwwroot\al
Peda wrote:
I want to upload some file to my web site.
[snip]
But It doesn't work.
Do you have file uploads enabled in php.ini? Take a look at a phpinfo()
page for details.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professio
>The upload_single.php script is just this:
>$ime = $_FILES["thefile"]["name"];
> print ($ime);
>?>
>I just want for begining to print the name of file.
>But It doesn't work.
Do you get anything if you change "name" to
"tmp_name" to beging with? If I'm not mistaken
,"name" isn't filled in w
> Do you have file uploads enabled in php.ini? Take a look at a phpinfo()
> page for details.
Yes I have.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i think ['name'] isn't empty, it contains the real name whereas tmp_name
contains the full path to the temp_file on the server
maybe you should try $HTTP_POST_FILES?
"Jonas Thorell" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> >The upload_single.php script is just this:
>
>
> maybe you should try $HTTP_POST_FILES?
>
I have tryed that too, but nothing happened.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<[EMAIL PROTECTED]> Para: [EMAIL PROTECTED]
>> maybe you should try $HTTP_POST_FILES?
>I have tryed that too, but nothing happened.
Hm, can't think of whatever else is wrong right
Now but I just tried out your script on my
Server just to see, and it outputs the
Filename alright. So it's nothing wrong
With your script. Granted, my server is
EMAIL PROTECTED]>
To: "'Peda'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 1:03 PM
Subject: RE: [PHP] File upload
> >> maybe you should try $HTTP_POST_FILES?
>
> >I have tryed that too, but nothing happened.
>
> Hm
* Thus wrote Peda ([EMAIL PROTECTED]):
> I want to upload some file to my web site.
>
> I'm using this script:
Please Read:
http://us3.php.net/manual/en/features.file-upload.php
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php
Am I making any obvious mistakes here, in my upload script? I want to
upload text-files only, they should end up in the directory from which
the script is executed and be names __traningsmatcher.txt.
Further details: Everything works, but I'm just curious if there is some
hidden mistakes. This i
akshay wrote:
Hi all,
I hv problem while file upload.
I hv one server and multiple client.
I want to upload a file from Server to client.
how this is possible in PHP
This is usualy called download. Is this what you want?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> akshay wrote:
> > Hi all,
> > I hv problem while file upload.
> > I hv one server and multiple client.
> > I want to upload a file from Server to client.
> > how this is possible in PHP
>
> This is usualy called downl
Anirudh Dutt wrote:
On Thu, 20 Jan 2005 12:26:07 +0100, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
akshay wrote:
Hi all,
I hv problem while file upload.
I hv one server and multiple client.
I want to upload a file from Server to client.
how this is possible in PHP
This is usualy called download. Is
On Thu, 20 Jan 2005 13:30:35 +0100, M. Sokolewicz <[EMAIL PROTECTED]> wrote:
> what you're doing is server => server
> What the akshay wants is server => client
> The only not yet posted other options are client => client (which is
> essentially impossible with PHP, unless you use the server=>serve
You can't, at least you SHOULDN'T. Just think about what you're asking
for, you want to download a file from a users computer, without them
knowing about it.
Major security/privacy issues there that browsers try to prevent.
Chris
Victor C. wrote:
Hi,
I'm trying to submit a file from "index.php"
Thanks for answering Chris..
What if I want to send a file from my web server to another site for them to
parse? I already know what file I want to send and I do not want to have to
select the file by doing "browsing".
"Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You can'
Server to Server transfers are a bit different. There are MANY ways to
do it. You can put the file in the document root of one server, and
download it with the other server. Or you could FTP the file from one
server to the other. Just 2 examples. And, you could even POST the file
from one to t
See... basically, I have two sites. One site provides user authentication
and another one requests the authentication. The requesting site need to
send to the authentication site its request in an XML. The authentication
site is suppose to get the XML file using $HTTP_POST_FILES. I'm using PHP
to
Ahh, if you *have* to push the data (which you obviously do) and the
authentication site has no other authentication methods then you have to
POST the file with PHP. It can be done, there are many classes for it, I
can't recommend any specific class, but I'm sure someone else here could.
I woul
H
Setup a CRON job using SCP or cURL. You can use SOAP or create your own
similar system. I have never used SOAP but use the same principles.
Example: Company X needs some strange format of data (text file, CSV or
whatever) delivered to them SECURELY at 5am EST. The company cannot
a
Victor
Yes, Chris is correct. Maybe you can POST your file via cURL to the
remote script expecting to receive your file from the authentication
site. Definitely check PEAR. There is also some info at php.net about
new SOAP capabilites built-in to PHP 5. Unfortunately I have only used
cURL t
> Ahh, if you *have* to push the data (which you obviously do) and the
> authentication site has no other authentication methods then you have
> to POST the file with PHP. It can be done, there are many classes for
> it, I can't recommend any specific class, but I'm sure someone else
> here coul
hmed
-Original Message-
From: Jesse Castro [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 7:13 PM
To: Victor C.
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] file upload
> Ahh, if you *have* to push the data (which you obviously do) and the
> authentication site ha
Akshay wrote:
I've been trying to come up with an algorithm that will allow me to
upload all the files in a folder.
The scheme I have in mind is to use a feedback form that will let me
pick out a target folder on my local machine. Upon submitting the
form, I'd like the script to upload all t
Tony (I'm guessing) --
...and then Anthony Ritter said...
%
% In the following snippet, which uploads binary files to a mySQL database it
% works fine when Register Globals are set to ON.
...
% $data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
This line is important to not
that sounds like a permissions error.
check the permissions for all of the directories and the file along your
path.
-Original Message-
From: Data Driven Design [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 1:04 PM
To: [EMAIL PROTECTED]
Subject: [PHP] File upload error
I ha
you will find some browsers dont work like they should, opera doesnt seem to
like my uploads.
";
?>
works or me, email me your comments if this is or isnt working for you
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PR
>
>
>
>
Don't you need a MAX_FILE_SIZE for this to work properly?
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
does anyone look at the manual anymore?
there's TONS of info at:
http://www.php.net/manual/en/features.file-upload.php
-aaron
At 1:10 PM -0800 3/9/01, Jerry Lake wrote:
>Anyone know where I can find a file upload
>tutorial ?
>
>Jerry Lake- [EMAIL PROTECTED]
>Web Designer
>Europa Co
PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Aaron Tuller [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 1:17 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: Re: [PHP] file upload tutori
> The problem that I'm experiencing using the above form is that when
> some users (and the problem is consistent for those users) submit the
> above form, *none* of the POST variables are getting passed to the
> receiving page. None of the hidden variables, not the "input
> type = file" variabl
> > Again, any help would be greatly appreciated!
> could be a browser specific issue. have you checked into the
> possibility that people having problems are all using the same
> browser?
I don't know what all of them are using, but most are using
IE. I don't know how feasable it would be to
Sounds like you don't copy tmp files to other place.
Most tmp files are deleted after program execution, PHP deletes tmp files as
well.
Refer to PHP manual for details.
Regards,
--
Yasuo Ohgaki
""Hilbert Mostert"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]..
Chris,
Have you asked what browsers they are using? Also, what are you using to
serve this page?
chuck
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
> Have you asked what browsers they are using?
This happens primarily on IE but it also happens
using NS
> Also, what are you using to serve this page?
?
PHP 4.0.4 and Apache.
Chris
Linn Kubler wrote:
> I've setup an upload form for uploading files to my server. It seems to
> work well except the performance is pretty sad. For example it took 20
> minutes to upload a 50MB file over a 100Mb LAN. This is running on Linux
> w/Apache.
>
> At the heart of the script is the cop
At 00:25 13.11.2002, Van Andel, Robert said:
[snip]
>encType=multipart/form-data>name=MAX_FILE_SIZE>
>
> }
>?>
>When I submit the form at the bottom of the script, the $user_file variable
>equals "none". I am unable to figure out what is going on. The var
Vogelsinger [mailto:ernest@;vogelsinger.at]
Sent: Tuesday, November 12, 2002 3:46 PM
To: Van Andel, Robert
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] File Upload problem
At 00:25 13.11.2002, Van Andel, Robert said:
[snip]
>encType=multipart/form-data&g
Vogelsinger
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] File Upload problem
It was a typo. Sorry.
-Original Message-
From: Ernest E Vogelsinger [mailto:ernest@;vogelsinger.at]
Sent: Tuesday, November 12, 2002 3:46 PM
To: Van Andel, Robert
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] File Upload p
Try print_r($_FILES) and see if you really get what you should. And also
check if you have your
form set as
David Russell wrote:
Hi all,
I have a form with a file upload section. The target script contains the
following:
if (is_uploaded_file($_FILES['newuserfile']['tmp_name'])) {
Ad
I can remember there is an option on the php config file to set the max file size
when uploading...
I think you can also limit the size with a hidden input on the form... like this:
the value corresponds to the number of bytes. so this would be for 2 MB..
--
Fr
D'oh! You're right, I went back and checked php.ini and found
upload_max_filesize but it's already set to 200M, I'm assuming that means
200 MegaBytes. So I don't think that's the problem. I don't have the
hidden tag set in the page code so that shouldn't be a factor either, right?
I'm a real ro
> -Original Message-
> D'oh! You're right, I went back and checked php.ini and
> found upload_max_filesize but it's already set to 200M, I'm
> assuming that means 200 MegaBytes. So I don't think that's
> the problem. I don't have the hidden tag set in the page
> code so that
On Tuesday 07 May 2002 09:01, David Freeman wrote:
> > -Original Message-
> > D'oh! You're right, I went back and checked php.ini and
> > found upload_max_filesize but it's already set to 200M, I'm
> > assuming that means 200 MegaBytes. So I don't think that's
> > the problem. I do
> -Original Message-
> I'm curious, I keep seeing people say that that tag is
> /necessary/, but I've never had to use it in the upload forms
> that I've built and they work just fine in Opera, NN & IE.
Good question. To be honest it's been a while since I looked, I built a
file
On Tue, 7 May 2002, Jason Wong wrote:
>>>
>>
>> You actually _need_ that hidden tag set AFAIK.
>
> I'm curious, I keep seeing people say that that tag is /necessary/, but I've
> never had to use it in the upload forms that I've built and they work just
> fine in Opera, NN & IE.
Don't feel ba
On Tuesday 07 May 2002 15:22, Miguel Cruz wrote:
> On Tue, 7 May 2002, Jason Wong wrote:
> >>>
> >>
> >> You actually _need_ that hidden tag set AFAIK.
> >
> > I'm curious, I keep seeing people say that that tag is /necessary/, but
> > I've never had to use it in the upload forms that I've built
On Tuesday 07 May 2002 14:14, David Freeman wrote:
> I guess that anything that causes this sort of thing to happen on the
> browser is going to help. I know I'd be fairly unimpressed if I sat
> waiting for a 2MB file to upload only to find that the limit is 1.5MB or
> some such. At least if a
> -Original Message-
> Hmm, after a bit of testing I find that the MAX_FILE_SIZE
> tag is useless to say the least (probably because no browsers support
it?)
That's somewhat of a shame I guess but I can hardly claim to be
surprised - especially as I've just spent much of my time in th
1 - 100 of 362 matches
Mail list logo