Hi Eric,
So do I still use move_uploaded_file?
Absolutely. I just didn't see anywhere in your code where you were
checking for an error with the file upload itself or that it did exist
on the server before moving it.
Got it, thanks!!
-Jason
--
PHP General Mailing List (http://www.php.net
On Fri, Dec 5, 2008 at 5:40 PM, Jason Todd Slack-Moehrle
<[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> 'tempUploads/1425182872.xlsUploaded The File.'
>
> http://us2.php.net/manual/en/function.is-uploaded-file.php
> http://us2.php.net/manual/en/features.file-upload.errors.php
>
> So do I still use move_
Hi Eric,
'tempUploads/1425182872.xlsUploaded The File.'
http://us2.php.net/manual/en/function.is-uploaded-file.php
http://us2.php.net/manual/en/features.file-upload.errors.php
So do I still use move_uploaded_file?
-Jason
On Fri, Dec 5, 2008 at 5:13 PM, Jason Todd Slack-Moehrle
<[EMAIL PROTECTED]> wrote:
> Here is the output I am printing:
>
> 'tempUploads/1425182872.xlsUploaded The File.'
>
> What is the issue?
>
> -Jason
>
>
> On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote:
>
>> Hi All,
>>
>> I am uplo
Here is the output I am printing:
'tempUploads/1425182872.xlsUploaded The File.'
What is the issue?
-Jason
On Dec 5, 2008, at 2:11 PM, Jason Todd Slack-Moehrle wrote:
Hi All,
I am uploading a file and it says it worked, but I dont see it in
the directory
Here is my code so far:
tedd wrote:
> At 5:14 PM +0100 12/12/06, Børge Holen wrote:
>> On Tuesday 12 December 2006 15:02, Jochem Maas wrote:
>> > Børge Holen wrote:
>>>
...
>
> Well... if Jochem is a moron, then I must be dunce because I've learn a
> lot from him, and continue to do so. If you take the time to listen,
At 5:14 PM +0100 12/12/06, Børge Holen wrote:
On Tuesday 12 December 2006 15:02, Jochem Maas wrote:
> Børge Holen wrote:
> > It is sad to see that you got an amazing tool like this list and still
> manages to read and understand it the way you FEEL like at any moment.
what makes this lis
On Tuesday 12 December 2006 15:02, Jochem Maas wrote:
> Børge Holen wrote:
>
> ...
>
> > It is sad to see that you got an amazing tool like this list and still
> > manages to read and understand it the way you FEEL like at any moment.
>
> what makes this list 'amazing' is the handful of people who
On 12/12/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
Stut wrote:
> Jochem Maas wrote:
>> and say what *you* mean.
>
> I LIKE MARMITE!!
you have my condolences.
>
> Damn, that does feel better.
see, just let it out... (said in soothing psychoanalyst's voice)
>
> -Stut
> (fairly bored today)
r
Stut wrote:
> Jochem Maas wrote:
>> and say what *you* mean.
>
> I LIKE MARMITE!!
you have my condolences.
>
> Damn, that does feel better.
see, just let it out... (said in soothing psychoanalyst's voice)
>
> -Stut
> (fairly bored today)
really!? ;-)
--
PHP General Mailing List (http://ww
Jochem Maas wrote:
and say what *you* mean.
I LIKE MARMITE!!
Damn, that does feel better.
-Stut
(fairly bored today)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Børge Holen wrote:
...
> It is sad to see that you got an amazing tool like this list and still
> manages
> to read and understand it the way you FEEL like at any moment.
>
what makes this list 'amazing' is the handful of people who regularly answer
(even the most banal) questions.
the inter
Børge Holen wrote:
No, I LEARN from this list.
you?
I smoke this list. Keeps me happy, out of trouble, and best of all it's
free!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> -Message d'origine-
> De : Jochem Maas [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 12 décembre 2006 14:10
> À : Tim
> Cc : php-general@lists.php.net
> Objet : Re: [PHP] file uploads Q?
>
> Tim wrote:
> >> Børge Holen wrote:
> >>> O
On Tuesday 12 December 2006 14:10, Jochem Maas wrote:
> Tim wrote:
> >> Børge Holen wrote:
> >>> On Monday 11 December 2006 20:48, Jochem Maas wrote:
> Richard Lynch wrote:
> > On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
> >> Is it possible to allow user pick several imag
Børge Holen wrote:
> On Tuesday 12 December 2006 12:01, you wrote:
>> Børge Holen wrote:
>>> On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
...
>> is that crack your smoking?
>
> No, I LEARN from this list.
>
> you?
we'll I'll admit to learning plenty on this l
Tim wrote:
>> Børge Holen wrote:
>>> On Monday 11 December 2006 20:48, Jochem Maas wrote:
Richard Lynch wrote:
> On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
>> Is it possible to allow user pick several images and upload them all
>> at
>> once? (I need to pass the
On Tuesday 12 December 2006 12:01, you wrote:
> Børge Holen wrote:
> > On Monday 11 December 2006 20:48, Jochem Maas wrote:
> >> Richard Lynch wrote:
> >>> On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
> Is it possible to allow user pick several images and upload them all
> at
> Børge Holen wrote:
> > On Monday 11 December 2006 20:48, Jochem Maas wrote:
> >> Richard Lynch wrote:
> >>> On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
> Is it possible to allow user pick several images and upload them all
> at
> once? (I need to pass the images to a
Børge Holen wrote:
> On Monday 11 December 2006 20:48, Jochem Maas wrote:
>> Richard Lynch wrote:
>>> On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for t
Jim Lucas wrote:
Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse b
Jochem Maas wrote:
Richard Lynch wrote:
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
Is it possible to allow user pick several images and upload them all
at
once? (I need to pass the images to a function for the resize). Or do
I need
to give several browse buttons to allow
On Monday 11 December 2006 20:48, Jochem Maas wrote:
> Richard Lynch wrote:
> > On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
> >> Is it possible to allow user pick several images and upload them all
> >> at
> >> once? (I need to pass the images to a function for the resize). Or do
> >>
Richard Lynch wrote:
> On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
>> Is it possible to allow user pick several images and upload them all
>> at
>> once? (I need to pass the images to a function for the resize). Or do
>> I need
>> to give several browse buttons to allow multiple file
On Sat, December 9, 2006 12:18 pm, William Stokes wrote:
> Is it possible to allow user pick several images and upload them all
> at
> once? (I need to pass the images to a function for the resize). Or do
> I need
> to give several browse buttons to allow multiple file uploads?
Yes, you would nee
On Thu, October 5, 2006 3:42 pm, Rahul S. Johari wrote:
> Richard, I corrected that mistake in a previous email you must have
> missed.
> I had copied the wrong code in my email to the list. The correct code
> is
> indeed action="https://www.myurl.com/imsafm2_main.php";>
>
> I'm pretty baffled at
Richard, I corrected that mistake in a previous email you must have missed.
I had copied the wrong code in my email to the list. The correct code is
indeed https://www.myurl.com/imsafm2_main.php";>
I'm pretty baffled at this stage. I don't understand why this won't work
over SSL. Over the interne
On Wed, October 4, 2006 3:02 pm, Rahul S. Johari wrote:
> http://www.myurl.com/imsafm2_main.php";
If you MOVED everything to the SSL server, then http://www.myurl.com
ain't the right ACTION anymore. It's now https://www.myurl.com
--
Some people have a "gift" link here.
Know what I want?
I want
uot;Jo ã o C â ndido de Souza Neto" <[EMAIL PROTECTED]>; "PHP"
>
> Sent: Wednesday, October 04, 2006 9:02 PM
> Subject: Re: [PHP] File Uploads not working over SSL
>
>
>
> Well, the File Manager application itself is pretty extensive... But if
>
Well, the File Manager application itself is pretty extensive... But if
you're looking for the upload code, here it is (sensitive information
erased):
if($upload_file) {
$db = mysql_connect("localhost","usr","pwd");
Please, show us your code.
""Rahul S. Johari"" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
Ave,
I have a File Manager application in place for over 2 years now.
Everything¹s been working groovy!
Until yesterday. Yesterday we purchased and installed an SSL Certificate.
And no
On 5/5/05, Cima <[EMAIL PROTECTED]> wrote:
> i have the following code that works except when the file i'm trying to
> upload excedes the upload_max _filesize and post_max_size defined in the
> php.ini file.
> what happens when the file is smaller than the max sizes mentioned
> previously, the if (
[embarrassment]
Thanks all. Of course it was a dumb thing I was doing. I didn't give
the absolute path when "moving" the uploaded file. I got it to work
though!
[/embarrassment]
~Philip
On Oct 28, 2004, at 9:40 PM, Robby Russell wrote:
On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote:
On Thu, 2004-10-28 at 19:04 -0500, Philip Thompson wrote:
> On Oct 26, 2004, at 7:06 AM, Jason Wong wrote:
>
> > On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
> >
> >> I have a form to upload a file from a user's computer to the server. I
> >> want to then modify the file, and then let
On Thu, 28 Oct 2004 19:04:27 -0500, Philip Thompson <[EMAIL PROTECTED]> wrote:
> > manual > Handling file uploads
> >
> > to see how it all works.
>
> Yeah, that was not useful at all.
That's how the rest of us learned. The examples on the page is pretty
clear to me.
> That's what I originall
On Oct 26, 2004, at 7:06 AM, Jason Wong wrote:
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
I have a form to upload a file from a user's computer to the server. I
want to then modify the file, and then let the user save it back.
However, I am having troubles opening the file. It says it
On Tuesday 26 October 2004 03:45, Philip Thompson wrote:
> I have a form to upload a file from a user's computer to the server. I
> want to then modify the file, and then let the user save it back.
> However, I am having troubles opening the file. It says it doesn't
> exist. Any suggestions?
>
> -
Hmm, well, to answer my own question, it looks like
the following will do. Sorry to make an ass of
myself. Hope you were all entertained!!
Send this file:
--- Jough Jeaux <[EMAIL PROTECTED]> wrote:
> Greetings all, I want to allow users to upload
> images
> to an online profile. Anyone k
Hi,
I'm working on a class and when a user submits a form to add a new
product, I'm calling the addProduct method and within that method I
call another method of the class 3 times. Once for a thumbnail image,
once for a preview image and once for the full image, is this
considered the correct
On Mon, Dec 01, 2003 at 02:00:34PM +, Jon Bennett wrote:
:
: Hi Chris,
:
: I think you're referring to this:
:
: $_FILES["image"]["tmp_name"]
:
: In my class I pass this as a reference:
:
: $aArgs['Image'] = $_FILES["image"];
:
: Then, $aImage in my storeBigImage() method is passed the
:
Down't worry, it's sorted!
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD
t: +44 (0) 1225 341039 w: http://www.jben.net/
On 1 Dec
sorry, made a mistake when writing my email:
return = $aNewImage['new_name'];
should be:
return $aNewImage['new_name'];
Cheers,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b e n . n e t
91 Glouce
I'm trying to return a value if the file uploads correctly, using
return, but I don't seem to be getting anything back.
I've added this to my storeImages method
return = $aNewImage['new_name'];
and when I call the method from my addProduct() method I use this:
$sThumbnailFileName = $this->_sto
well I'll be dammed, that was it! Geeze, you look at something for so
long sometimes you can't see the wood for the trees
I feel so stoopid now!
Thanks,
Jon
jon bennett | [EMAIL PROTECTED]
new media designer / developer
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
J b
Jon Bennett wrote:
Just to clarify about using move_uploaded_file()
...
function addProduct(){
// Move the uploaded file to the correct location
move_uploaded_file($$_FILES["image"]["tmp_name"],
BASE_DIR."/_img/_products/".$iProductId."_".$fileName);
}
...
function storeBigImage(
Ok, I've got it sorted now, but I'm buggered as to why this didn't work
the way I hoped. It seems that if I use an indexed or associative array
to store the location and new image file name, imagejpeg never works,
but if I use a normal var it does !! what's with that!
// doesn't work
$aNewImage
Hi Chris,
I think you're referring to this:
$_FILES["image"]["tmp_name"]
In my class I pass this as a reference:
$aArgs['Image'] = $_FILES["image"];
Then, $aImage in my storeBigImage() method is passed the
$aArgs['Image'] when it's called:
$this->storeBigImage($productID, $aArgs['Image']);
PHP first gives the file a temporary name on a temporary location. This
name is not the same as the name given in the upload form.
I think the temp filename is in the $_FILES array too, do a
print_r($_FILES) to check.
Now, here's the strange bit, if I call my method and just use
move_uploaded_
Just to clarify about using move_uploaded_file()
I call the storeBigImage methid from aother method like so
function addProduct(){
$this->storeBigImage($ID, $_FILES["image"]);
}
that doesn't work, if I use this:
function addProduct(){
// Move the uploaded file to the correct location
Hi,
I already tried $_FILES['userfile']['error'], but
as I already said the $_FILES is empty, completely empty
Cheers,
Catalin
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Sunday, June 29, 2003, 9:49:43 PM, you wrote:
> CT> Hi,
>
> CT>
Hi,
Sunday, June 29, 2003, 9:49:43 PM, you wrote:
CT> Hi,
CT> This is the error I get in the log file:
CT> [error] PHP Warning: POST Content-Length of 11184886 bytes exceeds the
CT> limit of 8388608 bytes in Unknown on line 0
CT> This is absolutely correct. The problem is
CT> th
- Original Message -
From: "Al" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 1:14 PM
Subject: [PHP] File uploads...
> Trying to do what should be rather simple and I have done before.
> Maybe I am just overlooking the obvious but this is the error I get...
>
>
u etetr reference them with $_FILES['photonew']['tmp_name']
or do a print_r($_FILES); and it'll tell u info in the upload
-Original Message-
From: Al [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 25, 2003 7:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] File uploads...
Trying to do what sh
> They do, and I believe it's until the end of the
> currently-running PHP script.
Perfect! Thanks.
Joseph
__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
PHP General Mailing List (http://www.php.
> 1) Do the temp files automatically delete, or do I
> need to put something in the code to delete them?
They do, and I believe it's until the end of the currently-running PHP
script.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ernest E Vogelsinger wrote:
At 19:55 04.03.2003, Joseph Bannon spoke out and said:
[snip]
Regarding file uploads...
1) Do the temp files automatically delete, or do I
need to put something in the code to delete them?
2) If automatically, how long? Where can
At 19:55 04.03.2003, Joseph Bannon spoke out and said:
[snip]
>Regarding file uploads...
>
>1) Do the temp files automatically delete, or do I
>need to put something in the code to delete them?
>
>2) If automatically, how long? Where can I set the
>length of
This might help you...
http://www.phpbuilder.com/columns/florian19991014.php3?page=4
*** REPLY SEPARATOR ***
On 28/12/2002 at 2:00 PM [EMAIL PROTECTED] wrote:
>I am having trouble with php file uploads where the files are arriving
>corrupted and information in the file is re
> I just wanted to know if there was a way to control the owner of the
new
> file because when iupload files the owner is set to httpd which means
that
> I
> can't access the file properly.
Not much you can do about it, if PHP is running as a module. If it's
CGI, then I think you can set it up so
Thanks Edwin .. this one was Bang On. It was exactly what you said
.. and now it works .. thanks a lot.
Jaski
On Tue, 24 Sep 2002 @ Edwin wrote :
>Jaski,
>
>On Tuesday, September 24, 2002 5:07 PM
>Jaski wrote:
> > No Edwin .. I can't do any thing to that file .. not even from
>my
> > ftp clien
Oops, what I wanted to post was
http://www.php.net/manual/en/function.chmod.php
and not
http://www.php.net/manual/en/function.chown.php
- E
On Tuesday, September 24, 2002 6:00 PM
@ Edwin wrote:
> Jaski,
>
> On Tuesday, September 24, 2002 5:07 PM
> Jaski wrote:
> > No Edwin .. I can't do a
Jaski,
On Tuesday, September 24, 2002 5:07 PM
Jaski wrote:
> No Edwin .. I can't do any thing to that file .. not even from my
> ftp client .. can't download can't change permissions ..
>
I think you won't be able to do anything with the file IF you use your ftp
client. The reason is because *you
What I don't understand is how can your webserver create a file and then
not to have permission to read it.
What is your setup?
Jaski wrote:
> No Edwin .. I can't do any thing to that file .. not even from my ftp
> client .. can't download can't change permissions ..
>
> The server is managed
No Edwin .. I can't do any thing to that file .. not even from my
ftp client .. can't download can't change permissions ..
The server is managed by rackspace .. I doubt they would do some
thing like running apache as root which I "hear" is a v foolish
thing to do (frankly I don't know how to
Just a comment...
On Tuesday, September 24, 2002 1:39 PM
Jaski wrote:
> I tried to copy this file using
> move_uploaded_file($userfile, "/place/to/put/uploaded/file");
>
> and here a strange thing happened. The file was successfully
> copied BUT it had permissions like -rw-- which I interpret
Thanks .. but I think you are saying exactly what I wrote I was
doing .. except that you have used exec("cp $file $path") while I
tried PHP's copy() function .. I don't think that will make a
difference...though will give that a try any way.
Forgot to mention in my previous mail that the dire
Try:
$upload = "/path/to/copy/";
$upload_path = "$upload/$file_filename";
if (is_uploaded_file($file)) {
Exec("cp $filename $upload_path");
}
Then you have the file at /path/to/copy/, and you can do
whatever you want with it. (I'm assuming the file field of the form is
called "file", and that
On Tue, 14 May 2002, John Ngo wrote:
> actually i looked up pjpeg
> turns out its an actual filetype in its own right haha
>
> pjpeg uses progressive encoding as opposed to normal jpeg or something
> whats weirder is everyfile i've tried on my computer appears to be pjpeg
> encoded
You're probab
actually i looked up pjpeg
turns out its an actual filetype in its own right haha
pjpeg uses progressive encoding as opposed to normal jpeg or something
whats weirder is everyfile i've tried on my computer appears to be pjpeg
encoded
"Jochem" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED
I guess you could check the $userfile_type for the correct type.
"John Ngo" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> basically i've got a file upload script (that works)
>
> what i want to do now is restrict it to filetypes of 'image/jpeg'
> however n
The username will be the same username that apache is running as, which you
can specify in your httpd.conf file.
-Jeff
At 10:32 AM 2/6/2002 -0500, Ben Crawford wrote:
>I apoligize if this question has already been asked but
>
>I am looking to upload files to my server. I use a form and can
Thanks Much Martin!
--ccma
> --snip--
>
> good luck!
>
> /Martin
>
> --
> 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]
>
--
P
> Greetings:
>
> Looking for a way to say *.php in this code:
> if ($file != ".htaccess" && $file != "." && $file != ".."
> && $file != ANY PHP FILE)
>
>
> I have tried *.php...
>
separate the file extension from the $file
with code looking something like this:
$ext = substr($file,str
Are you using move_uploaded_file() to move the file into place?
On Thu, 6 Sep 2001, Justin French wrote:
> Hi all,
>
>
> My understanding of the whole file uploading thing is not fantastic, and
> i'm unsure where to go next with this one.
>
> I have a file-upload script which works fine on my te
I suggest you to check www.zend.com/zend/spotlight/uploading.php
Bst Rgds
Pere
"Gerard Samuel" <[EMAIL PROTECTED]> escribió en el mensaje
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6
> beta & Opera 5 all show this problem.
Ok, I tried the to replicate on different browsers. Microsoft IE 5.5 ,6
beta & Opera 5 all show this problem.
Here are some snippets of the code that Im using. Thanks
<---snip--->
echo "\n";
<---snip--->
echo " \n";
<---snip--->
if ($pic_type != "image/jpeg") {
echo "Pleas
This is a very good tutorial on the subject.
http://www.thickbook.com/extra/php_fileupload.phtml
Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117
http://www.datadrivendesign.com
Phone: (386) 226-8979
Websites That WORK For You
- Original Message -
From: "Dr. Evil" <[EM
the "5000" represent byter try making it 500 i.e 5 megabytes i think
the file you are trying to upload might be bigger than 5k and 5M is safe
you can keep the fileseize fixed to a large value to be safe. and instead
all the fancy code just try the move_uploaded_file() command to see if it
work
> -Original Message-
> now, on the same form, i have a multiple select box, where
> you can select
> multiple values from one select box. the code is as follows --
>
>
[ snip ]
>
>
> if the user selects more than one country, then if you echo
> $country, it
> will show you only the
I was curious, so I uploaded a file using the upload form and transferred
the same file via ftp and did a diff on the two files. Here's the results:
diff -a Poster.jpg Poster_test.jpg
0a1,2
> Content-Type: image/pjpeg
>
Does that help?
-Ed
At 06:01 PM 2/22/2001 -0800, Ed Lazor wrote:
>More
More info:
I transferred an image to the web server via ftp and was able to view it
successfully from the web site.
Here's an example image that was transferred using a file upload form that
won't display properly:
http://www.atfantasy.com/attachments/3224/samurai1.jpg
When you try to view i
81 matches
Mail list logo