Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uploading jpgs 1

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I use this fairly standard upload routine for visitors to get images onto the server.
Code:
while($bytesread=read($fileID,$buffer,1024)){
	print OPF "$buffer";
	$sum_bytes=$sum_bytes+1024;
	if($sum_bytes >$MaxPicSize){
		close OPF;
		# Delete u/s picture
			unlink $NewFile;
		$Message .= "File is too large.<br>Maximum Allowed File Size = $MaxPicSize.<br>";
		last;
	}
}

The problem I have is 1 particular user is unable to upload images. She appears to be doing everything correctly although I can only go off her description of what she does.
Could there be something local causing the problem or is it likely to forever remain a mystery.

Keith
 
Just thought I'd give you a heads up if you are using the uploadify method!

It doesn't work properly with cookies, it apparently deletes them via the flash part of the application?

In the end I had to write a workround to pass the cookie MD5 hash back as a POSt var.

It's ugly and nasty having to do that and so you might decide uploadify isn't worth using as it destroys sessions cookies!


"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"

MIME::Lite TLS Email Encryption - Perl v0.02 beta
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top