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
|
|
|
|
Rank: Advanced Member
Groups: 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
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 7/28/2003(UTC) Posts: 1,660
Thanks: 5 times Was thanked: 76 time(s) in 74 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
|
|
|
|
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.