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

Notification

Icon
Error

Options
Go to last post Go to first unread
maroonfish  
#1 Posted : Thursday, May 21, 2009 1:55:19 AM(UTC)
maroonfish

Rank: Newbie

Groups: Member
Joined: 5/20/2009(UTC)
Posts: 1

I'm using the php script copied directly from Writing Server-Side Upload Code, Uploading in PHP... copied exactly. I created a directory called Gallery and one called Thumbnails. (all scripts and Gallery and Thumbnails are in root)

added:
iu.addParam("ButtonSendText", "UpLoad");
iu.addParam("BackgroundColor", "#FFFFFF");
iu.addParam("TreePaneBackgroundColor", "#F9F9F9");
iu.addParam("FolderPaneBackgroundColor", "#F9F9F9");
iu.addParam("UploadPaneBackgroundColor", "#FFC5C5");
iu.addParam("DropFilesHereText", "Drag images from above and drop them here to be uploaded.");
iu.addParam("ShowDescriptions", "false");
iu.addParam("TreePaneWidth", "200");
iu.addParam("FolderPaneHeight", "240");
iu.addParam("ThumbnailVerticalSpacing", "8");
iu.addParam("ThumbnailHorizontalSpacing", "12");
iu.addParam("PreviewThumbnailSize", "65");
iu.addParam("ButtonAddToUploadListText", "Add Selected");
iu.addParam("ButtonRemoveFromUploadListText", "Remove Selected");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.png;*.gif;");
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "1200");
iu.addParam("UploadThumbnail1Height", "1200");
iu.addParam("UploadThumbnail1JpegQuality", "90");
iu.addParam("Action", "/PicUpload.php?");

It looks like the upload proceeds fine, give the upload complete notice, but nothing appears in the Gallery or Thumbnails directory.

Can anyone help this newbie? (also a newbie with php)

Thanks.

Edited by user Thursday, May 21, 2009 2:00:03 AM(UTC)  | Reason: Not specified

Tamila  
#2 Posted : Thursday, May 21, 2009 1:38:45 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello,

According to Writing Server-Side Upload Code article you should have the following hierarchy of folders:
Code:
Root ---> SomeFolder ---> index.php
    |          	       PicUpload.php
    |
    |
     ---> Gallery ---> Thumbnails


As I understand you have another structure, so you need to correct these variables in PicUpload.php:
$galleryPath = "../Gallery/";
$absThumbnailsPath

Edited by user Thursday, May 21, 2009 1:40:55 PM(UTC)  | Reason: Not specified

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
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.