Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
kddesai98  
#1 Posted : Thursday, July 27, 2006 1:14:53 AM(UTC)
kddesai98

Rank: Member

Groups: Member
Joined: 7/20/2006(UTC)
Posts: 4

I am using activex version of image uploader and php as server side script. Can someone tell me how to get description field of the uploaded image in php? I can't find the information in documentation section.

Thanks
George Ulyanov  
#2 Posted : Thursday, July 27, 2006 4:00:33 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203

Quote:
kddesai98 (7/27/2006)
I am using activex version of image uploader and php as server side script. Can someone tell me how to get description field of the uploaded image in php? I can't find the information in documentation section.


You can find it in the standard Image Uploader samples. Please see for example PHP/UserQuota/gallery.php file:

Code:
<td>
	<a href="<?php echo $galleryPath . $fileName;?>" target="_blank">
	<img src="<?php echo $galleryPath . "Thumbnails/" . $fileName . ".jpg";?>" alt="<?php echo htmlentities($xmlFile->getAttribute("name"));?>" />
	</a>
	
	<b>Name:</b>
	<?php echo htmlentities($xmlFile->getAttribute("name"));?>
	
	<b>Dimensions:</b>
	<?php echo htmlentities($xmlFile->getAttribute("width"));?>
	x
	<?php echo htmlentities($xmlFile->getAttribute("height"));?>
	

	<b>Description:</b>
	<?php echo htmlentities($xmlFile->getAttribute("description"));?>

</td>

Edited by user Monday, February 18, 2008 7:25:37 PM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
Fedor  
#3 Posted : Thursday, July 27, 2006 8:56:47 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,546

Thanks: 5 times
Was thanked: 58 time(s) in 57 post(s)
I just want to say that in PHP/BasicDemo/upload.php you can find how to extract the uploaded data from post on server (in previous post we show description already saved in XML file)

For getting description for the file $i you should this simple code:

Code:
$_POST ['Description_' . $i]


Please read POST Field Reference for the full list of uploaded fields on server.

Edited by user Wednesday, October 29, 2008 1:01:04 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.