image uploaded file overlap

This is a discussion on "image uploaded file overlap" within the PHP Forum section. This forum, and the thread "image uploaded file overlap are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 10th, 2006, 11:58
New Member
Join Date: Jul 2006
Location: nepal
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
image uploaded file overlap

hi, i have problems in upload image in one folders
but this code will be finally worked but whne i will upload next image it file name automatally rename abc all images name. but i want to that not rename if image name and not overlapping on it. do y have any idea that
yours regarded
dharmendra

<?

$upImg = $_FILES['upload']['name'];
if(isset($upImg)){
echo "File Name: ".$upImg;
echo "<br>File Temp Name: ".$_FILES['upload']['tmp_name'];
echo "<br>File Size: ".$_FILES['upload']['size'];
echo "<br>File Type: ".$_FILES['upload']['type'];
if($_FILES['btnUpload']['size']<(50*1024)){
$path="tmp/";
$arrImg=explode('.',$_FILES['upload']['name']);
copy($_FILES['upload']['tmp_name'],$path."abc.".$arrImg[1]);
}
else{
echo "Image size exceeds 50 kb";
}
}

?>
Reply With Quote

  #2 (permalink)  
Old Aug 10th, 2006, 12:02
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: image uploaded file overlap

Could you please have another try at explaining what it is exactly you want to do?

Thanks.
Reply With Quote
  #3 (permalink)  
Old Aug 10th, 2006, 12:48
masonbarge's Avatar
Highly Reputable Member
Join Date: Jan 2006
Location: Atlanta GA
Posts: 631
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image uploaded file overlap

This should give partial relief until you can solve the underlying problem.

Code: Select all
$newfilename="anexample.gif";$old="files/".$_FILES['imagefile']['name'];$new="files/$newfilename;rename($old,$new1);
Reply With Quote
Reply

Tags
image, uploaded, file, overlap

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash Divs overlap problem oberonx Web Page Design 1 Apr 4th, 2008 20:20
Image file size help danny322 Graphics and 3D 6 Nov 9th, 2007 11:20
div in table row overlap jlbantang Web Page Design 7 Oct 12th, 2007 22:11
creating a site for for image and file hosting ahmednadir Starting Out 2 Apr 2nd, 2007 23:19
Please help: Cannot view uploaded file sjagan PHP Forum 4 Jun 27th, 2006 09:31


All times are GMT. The time now is 21:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43