From: christopher johnson <[EMAIL PROTECTED]>
Date: Thu, Aug 30, 2001 at 12:47:00PM -0500
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] file upload size, before upload complete
> Can anyone think of a way to determine the file size of what the user is
> uploading before
Yes, I use to do this with my site.
# The original name of the file on the client machine.
$filename = $HTTP_POST_FILES['file']['name'];
# The mime type of the file, if the browser provided this information. An
example would be "image/gif".
$filetype = $HTTP_POST_FILES['file']['type'];
# The
Can anyone think of a way to determine the file size of what the user is
uploading before it has been fully uploaded?
I know because of security restrictions javascript can't do this, but is it
possible in php?
I'm trying to make an upload progress bar, it doesn't have to be exact, but
a close app
Actually,
The warning is coming from when I try and upload the file from the
desktop of my Mac. It's supposed to get uploaded into:
C:\WINNT\PHP\UPLOADTEMP. I checked phpinfo() and that's where it says
the upload_tmp_dir is. By the way, I was using the getimagesize to check
if the file is a .gif,
> I'm having an odd problem on a WinNT system.
That's what NT is all about. ;)
> When I try to do my upload, I test the file to see the type of it:
> $image_info = GetImageSize($the_image);
Out of curiousity, who don't you try using:
if(is_file($the_image)) {
do something...
} else {
Try putting it in a directory that doesn't have a space in it.
On Fri, 24 Aug 2001, Joseph Koenig wrote:
> Sorry, I know file uploads are asked about all the time...
>
> I'm having an odd problem on a WinNT system.
>
> When I try to do my upload, I test the file to see the type of it:
> $image_i
Sorry, I know file uploads are asked about all the time...
I'm having an odd problem on a WinNT system.
When I try to do my upload, I test the file to see the type of it:
$image_info = GetImageSize($the_image);
However, that line gives me:
Warning: getimagesize: Unable to open
'/Joe1/Desktop%20
Change
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 4:31 AM
Subject: [PHP] File upload problem
> Hello there,
>
> I am trying to create a form for uploading files to the local intranet.
> Therefore I created a form for uploading files as mentioned in the P
Hello there,
I am trying to create a form for uploading files to the local intranet.
Therefore I created a form for uploading files as mentioned in the PHP
manual. After submitting the form I want to copy the file to the intranet
with as name the original name on the system of the client. The pro
Thanks for the message Richard,
I've been advised to upgrade to a new version (now running 4.0.6) and it works
fine.
Martin
Richard Lynch wrote:
> > If I try to submit a file for upload using the form using Netscape I get
> >
> > "Document contains no data". If I do the same in IE5.0 it just w
> If I try to submit a file for upload using the form using Netscape I get
>
> "Document contains no data". If I do the same in IE5.0 it just waits
> forever.
>
> Looking at the apache server error_log file I appear to be getting a
> "Segmentation Fault (11)" each time I try and Post the contents
I have a server running SuSE Linux Pro V7.0 (with security patches) ,
Apache 1.3.19 , and PHP 3.0.17-dev. The database engine I am using is
MySQL 3.22.32 (not relevant for this problem though).
I am trying to get file uploads working to the server, I currently have
a page which is written in PHP
i know this has been posted before but i still haven't figured it out.
the bloke who runs the server for a 'client' of mine has set safe mode on
and therefore the standard file upload scripts fail.
i needed to create a 'dump' of the database in text files whihc i've done by
creating a dir within
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
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 =
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 ==>
$archive_dir = "/files/www/data/archive";
$filename
I once had the same problem in a similar environment, but I never worked on it to fix
it because it was sufficient for the given purpose. Later, I moved the script 1:1
(including php.ini) to a server running caudium as web server software and the problem
was gone...
Huh?
>Did anyone have any
Did anyone have any thoughts on this? I can upload an 8 MB file, but after
that the upload fails.
-Original Message-
From: Michael Conley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 7:41 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] File Upload Size Limits
I am r
I am running PHP 4.0pl1 with Apache 1.3.14 on RedHat Linux 7.1. I am trying
to do a file upload from the users PC to my web server. If I do a small
file, the transfer goes fine. If I do a large file (> 50 MB), the transfer
fails saying either the file was not available for reading or my script
On Fri, 20 Jul 2001 18:49, Jason Rennie wrote:
> Thank you for everybody tried to help with the file uploading problem.
>
> I figured out the problem.
>
> Don't you hate it how the obvious mistakes are the hardest to find.
>
> The answer was, it is ENCTYPE not ENC_TYPE
>
> doh!
>
> Thanks agai
Thank you for everybody tried to help with the file uploading problem.
I figured out the problem.
Don't you hate it how the obvious mistakes are the hardest to find.
The answer was, it is ENCTYPE not ENC_TYPE
doh!
Thanks again everybody
Jason
--
PHP General Mailing List (http://www.ph
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
-BEGIN PGP SIGNED MESSAGE-
Hi everyone,
I try to upload a file to my webserver, extract the email-adresses it
contains and write these into a mysql database.
Working with small files (<350 Kb) this works perfect. But trying to
do this with files bigger than that fails. The files are never
On Thu, 19 Jul 2001 16:06, Jason Rennie wrote:
> Hi all,
>
> Can anybody see what is wrong with this code ??
>
>
> echo "\$userfile = $userfile";
> echo $HTTP_POST_FILES['userfile']['tmp_name'];
>
>
> // now to provide an assignment submission box
> print "";
> print
Hi all,
Can anybody see what is wrong with this code ??
echo "\$userfile = $userfile";
echo $HTTP_POST_FILES['userfile']['tmp_name'];
// now to provide an assignment submission box
print "";
print "\n";
pr
Hi all.
This is the first time I write something to newsgroups. I've this
problem:
After upgrading PHP3 ->PHP4 and changing the variables to array
($file_type -> $HTTP_POST_FILES['file']['type'] )
The variables that are automatically created when uploading a $file have
all worked properly exept
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
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
Hi all,
i'm using php version 4.0.5 and i'm playing around with the file upload command using
form and script which i copied
from php.net
Unfornunately the script is giving an error:
Warning: Unable to open '/tmp/phpmOSK48' for reading: No such file or directory in
/opt/guide/www.abc.de/up
sice i installed php 3.0.18 html forms whith blank file-input never returns
'none'.
$userfile is always unset.
with php 3.0.12 my file-upload scripts worked perfectly.
i know i could do samething like:
if ($userfile != 'none' && strlen($userfile)) { ... }
but i have alot of scripts to change.
Hi,
I have tried everything and still having problem
uploading. Actually, my problem is with IE, I got a
unable to read file or file not found message from IE.
But uploading is fine with NS. Does anyone has this
experience? Any pointers?
My file is only 20K word document and I have set the
max f
Hi folks,
I've been banging my head against a problem with file uploads for the last
few days. Perhaps someone here has seen this before.
My problem is that when handling my file uploads, I can print out the values
of my form variables, both using HTTP_POST_VARS["var"] and $var. I can also
se
> 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
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:
Below is the (very) simple form that I'm using to allow users
to upload files to my site:
---
Upload Attachment
Upload File
You are uploading from an unsecure server.
Close
Window
---
The proble
]
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
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
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
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,
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
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
IL PROTECTED]
> Subject: [PHP] File upload
>
>
> Hi,
> sorry for asking such easy things but I really have a hard time
> to get this
> to work:
>
> I use exactly the scripts which are given on the PHP website to upload
> files. The problem is that the variable $userfile ju
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
Hi,
sorry for asking such easy things but I really have a hard time to get this
to work:
I use exactly the scripts which are given on the PHP website to upload
files. The problem is that the variable $userfile just contains "none" and
$userfile_size is "0". The rest of the variables have the righ
Hi! %-)
The code below makes a form. This form creates a temporary file that
contains the data of the original source file. This temp file is sent to the
server using FTP.
On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is
exactly the same as the original file and so the
Hi! %-)
The code below makes a form. This form creates a temporary file that
contains the data of the original source file. This temp file is sent to the
server using FTP.
On my first config (Win NT4, Apache 1.3.19, PHP 4.0.4pl1), the temp file is
exactly the same as the original file and so the
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]..
Hello all,
I have some serious problems with file uploads,
when i upload a file to the server it creates the $userfile, $userfile_type,
$userfile_name and $userfile_size
variables, but it doesn't create the actual file in the /tmp dir (the upload
directory).
I have used redhat 7.0 with apache
>From the manual:
"Handling file uploads Uploading multiple files
Common Pitfalls
Not validating which file you operate on may mean that users
can access sensitive information in other directories. "
What is meant by the above? How would you "validate" that
you weren't operating on the
> > 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
> 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
Below is the (very) simple form that I'm using to allow users
to upload files to my site:
---
Upload Attachment
Upload File
You are uploading from an unsecure server.
Close
Window
---
The proble
ma
New Delhi
India
-Original Message-
From: JoshuaHu [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 9:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] file upload failed:(
I use PHP 4.04p11 on Apache.
But my upload.php can't work...
f1 is the name of file-upload-variable
Upload
I use PHP 4.04p11 on Apache.
But my upload.php can't work...
f1 is the name of file-upload-variable
Upload successfully";
$fname=substring (strrchr($f1_name,"\"),1);
}
unlink ($f1);
?>
The browser returns
Parse error: parse error in c:/inetpub/php_root/upload.php on line 8
Can anyone
> 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
hi!
I've php4.0.4pl1 and apache1.3.14 installed and I got a problem after the
file is uploaded, using the copy function. The uploaded file was
automatically added 2 lines in the beggining of the file, tellling the
content-type of the file.
Is there any way not to write those line into the uploade
Yes. Refer to PHP Manual. There is description for that.
--
Yasuo Ohgaki
"Joe Stump" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm in the habit of putting all my form variables into an array (ie:
> )
so
> that I have a nice little package to pass to fun
Joe Stump wrote:
>
> I'm in the habit of putting all my form variables into an array (ie:
> ) so
> that I have a nice little package to pass to functions. My question is can you
> put files into those as well? If so how does it handle the $file_name and
> $file_size variables PHP creates?
>
> --
I'm in the habit of putting all my form variables into an array (ie:
) so
that I have a nice little package to pass to functions. My question is can you
put files into those as well? If so how does it handle the $file_name and
$file_size variables PHP creates?
--Joe
/**
sagem original-
De: Andrew Rush [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 3 de abril de 2001 18:05
Para: Augusto Cesar Castoldi
Assunto: Re: [PHP] file upload
on 4/3/01 4:51 PM, Augusto Cesar Castoldi at [EMAIL PROTECTED] wrote:
> hehe, I forgot.
>
> I'm getting this erro
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:
>
r 2001, Delbono wrote:
> And the problem is?
>
>
> - Original Message -
> From: "Augusto Cesar Castoldi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 03, 2001 7:04 PM
> Subject: [PHP] file upload
>
>
> > I
I'm having a problem with file upload.
I have "" in the HTML file. The
action of the form is "upload.php",
and in the upload.php3 I have this line "
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T
SOLVED!
Setting TMPDIR="site-specific-upload-directory" at execution time of the PHP
parser, made it work. The directory must have a+rwx though!
--
--
Intent A/S
Tais M. Hansen
Web Developer
""[Intent A/S] Tais M. Hansen"" <[EMAIL PROTECTED]> wrote in message
9abu1j$99q$[EMAIL PROTECTED]">ne
Hi!
system(), exec(), popen() and similar has been disabled in the system I'm
working on, if that's what you're talking about. :(
I can't read the temp file because it's created in PHP's UID which is not
the same as the script's. I also tried the FTP approach, but apparently the
files written wit
Howdy,
You should be able to read this file using the file system functions. The
PHP process (if it is set up properly) should have read access to this
directory. The problem you will have is *writing* it to your own directory,
as the PHP process probably *doesn't* have write access to your direc
Hi!
I'm currently working with a site on a safe mode enabled server.
First off, there's no way safe mode can be disabled.
Now, I need to be able to upload a file via a HTML form post, read and copy
this file to a different location. But when the file is uploaded, it is
placed in a tmp dir with
> > 3. At the time of upload, it is possible to specify a list of
> > users who can "view" and "modify" the file. Currently I am storing
> > this list as a whitespace-separated list in a mySQL TEXT column.
> >
> > Column "view" data: 3 11 1
> >
> > At the time of displaying the list, I first SELE
> 1.
> 2.
Both seem fine to me.
> 3. At the time of upload, it is possible to specify a list of
> users who can "view" and "modify" the file. Currently I am storing
> this list as a whitespace-separated list in a mySQL TEXT column.
>
> Column "view" data: 3 11 1
>
> At the time of display
Hello all,
I'm in the process of building a document-storage system for my firm with
PHP. The goal is this is essentially to allow users to upload documents to
our server (central repository) and allow other users to view/modify these
files.
I have a number of questions, most of them related to
If you have been changed your php.ini to accept larger uploaded files.
Then there are many possibilities. If you explain what kind of environment you
have and it's settings,
someone might be able to help you.
Regards,
--
Yasuo Ohgaki
""Jeff Oien"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PRO
> ""Jeff Oien"" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I've modified a script for uploading multiple files
> > and am trying to get it to produce an error if the
> > size of the file is larger than 2 MB but can't get it
> > to work. Here is the code
""Jeff Oien"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've modified a script for uploading multiple files
> and am trying to get it to produce an error if the
> size of the file is larger than 2 MB but can't get it
> to work. Here is the code in question
I've modified a script for uploading multiple files
and am trying to get it to produce an error if the
size of the file is larger than 2 MB but can't get it
to work. Here is the code in question with the
who code below. When I try to upload a 3 MB
file it doesn't produce an error. Everything els
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
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
Anyone know where I can find a file upload
tutorial ?
Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi,
I have problems with Post File Uploads... When trying to upload very
small files it works, although my browser timeouts or I get a
Server Hangup
Description: Server Hangup
message
Is it Apache that times out?
I am wondering what is causing this and what can be done..
Thank you,
Cedri
Hi!
File upload doesn't work with Netscape Navigato. I
have Netscape COmmunicator 4.5. I try to upload files
and I get Network Error.
If it is working for any of you guys please give me
the URL so that I can test it out and check my
problem..
Help me out.
Thank You!
Cheers!~
Dhaval Desa
Hi!
File upload doesn't seem to work from Netscape.
It works with Internet Explorer.
In netscape it says Network Error Occured..
Why's that..?
Thanl You!
Dhaval Desai
__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://perso
>
>
>
>
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]
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
Hi there,
We are currently using 3.0.16 (I know :().
I have a form action pointing to $PHP_SELF. After submitting the form
information, $userfile contains what I expect in $userfile_name. I have
had all sorts of troubles with file uploads lately, but eventually they
start working. Not this time.
> I've created a simple form that uploads file to my server. I noticed that
> I'm having problems when I use Internet Explorer 4.5 and 5.0 on the Mac (I
> haven't checked it yet on the pc). It may have something to do with the
path
> to the file. When I use Netscape, the entire path is displayed i
I've seen this question asked, but I have yet to find the answer. What
do I need to do to make IE on Mac stop giving me a warning that the File
Upload Mime Headers are Garbled when a user uploads a file? Thanks,
Joe
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAI
I've created a simple form that uploads file to my server. I noticed that
I'm having problems when I use Internet Explorer 4.5 and 5.0 on the Mac (I
haven't checked it yet on the pc). It may have something to do with the path
to the file. When I use Netscape, the entire path is displayed in the fo
Make sure that upload_tmp_dir in your php.ini file is set to something
sensible for a windows machine.
I have it set to f:\php\temp (and you also need to make sure that the
directory specified actually exists).
Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.co
esign
- Original Message -
From: Josh G <[EMAIL PROTECTED]>
To: PHP User Group <[EMAIL PROTECTED]>
Sent: Monday, February 19, 2001 6:58 PM
Subject: [PHP] File upload problem on IIS/NT4
> Hi guys, I'm having a problem with file uploads, and I can't seem to
> fix it. I'
Hi guys, I'm having a problem with file uploads, and I can't seem to
fix it. I'm on IIS using php as an ISAPI module on NT4, and file uploads
seem to work, but $userfile does not exist. Any ideas on how I can
fix it?
userfile:\\php8
userfile_name:notes.txt
Cheers,
Gfunk - http
On Thu, 15 Feb 2001, Scott wrote:
> I am uploading files and want to limit the size of the file. I can do this
> as long as the file that I am uploading doesn't exceed the Server limit. We
> don't own the server so I can't change any configuration on the server.
>
> Is there a way to Catch the w
I am uploading files and want to limit the size of the file. I can do this
as long as the file that I am uploading doesn't exceed the Server limit. We
don't own the server so I can't change any configuration on the server.
Is there a way to Catch the warning and display my own message in the
brow
I'm not sure but I think that may be something still missing from JSP. I
am not sure and believe I read about a class or something that handles it.
Looking at java.sun.com would probably be your best bet.
Michael
jason cox wrote:
> Does anyone know the difference between file upload
> handlin
Does anyone know the difference between file upload
handling in PHP and with Java/JSP? An example of the
Java equiv. would be most appreciated. I already know
how to do it with PHP and am trying to do a bit of
conversion. I'm interested more in the backend
processing.
thx,
jason
___
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ah, figured out the problem. MAX_FILE_SIZE is in BYTES not
Kilobytes. Any file >5K was killed.
- --
Aaron Turner <[EMAIL PROTECTED]|synfin.net|linuxkb.org> URI:www.synfin.net
They that can give up essential liberty to obtain a little temporary s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, 13 Feb 2001, jason cox wrote:
> Aaron,
>
> Are you processing the file on the page you're
> "posting" to?
Yep. A little more info this time. Ok this makes no freaking sense to
me:
I can upload my /etc/passwd file
- -rw-r--r--1 roo
Aaron,
Are you processing the file on the page you're
"posting" to? Could you send your processing code so
we can have a look? If you're still having problems,
I can send you an example.
Jason
--- "Aaron D. Turner" <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Tue, 13 Feb 2001, Michael McGlothlin wrote:
> A lil clip from Devedge.. you need a VALUE="" field along w/ a NAME=""
> maybe?
A VALUE= isn't required for TYPE=file (and adding it didn't solve my
problem).
> This places an element on an HTML
A lil clip from Devedge.. you need a VALUE="" field along w/ a NAME=""
maybe?
This places an element on an HTML form that lets the user supply a file
as input. When the form is submitted, the content of the specified file
is sent to the server as the value portion of the name/value pair for
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Solaris 7
Apache 1.3.14
PHP 4.0.4p1
For the life of me I can't figure out what's going on. I have:
Choose File:
and I can try to upload a file, but then the HTTP_POST_FILES hash doesn't
get properly populated and no file is s
: Tuesday, February 13, 2001 2:10 PM
Subject: [PHP] File Upload stuck in the midst
> Hi!
>
> I am facing some problems while uploading files..
> I just copied the code from php.net from the section
> "Handling File Uploads".
>
> My index.php pages has the follo
501 - 600 of 610 matches
Mail list logo