Welcome Guest Search | Active Topics | Members

Saving images to a dynamically created directory Options
marco
Posted: Friday, April 28, 2006 10:55:57 AM
Rank: Member
Groups: Member

Joined: 4/10/2006
Posts: 2
Points: 0
Hi

I have adapted the upload.php sample code to create a new directory based on the client's name entered within the form and a date/time stamp. All the files are saved as expected in this dynamically created folder.

The index page has the line to call PictureGallery.php which displays the thumbnails of the images saved.

My problem is that there is no way that I can think that PictureGallery.php can find the dynamically created folder to find the images and description file.

I have tried commenting out the call to PictureGallery.php and adding some code into Upload.php to output similar content but this does not work, possibly as it is being called by the java applet rather than the browser.

Can you suggest a way around this?

Thanks

Marco

Mark
www.inetdesign.co.uk
Alex Makhov
Posted: Tuesday, May 02, 2006 12:51:16 AM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

You could set the parameters to the redirection url (like PictureGallery.php?param1=value1¶m2=value2) and then use it in your PictureGallery.php.

Sincerely yours,
Alex Makhov
newvisionjeff
Posted: Tuesday, May 16, 2006 7:15:54 AM
Rank: Advanced Member
Groups: Member

Joined: 4/20/2006
Posts: 37
Points: -438
I am interested in having my clients upload files to my server just like that to my photo lab. Can I get any suggestions? I would greatly appreciate it. I'm looking into the image uploader right now. I run a PHP and ASP.NET server here with XP2003 server and IIS 6. Could I get an example of the PHP script that creates the folders and time stamps?

Jeff
www.newvisioncolorlab.com

Jeff MacDougall
New Vision Lab
www.newvisioncolorlab.com
Alex Makhov
Posted: Thursday, May 18, 2006 9:15:46 PM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

We have made a set of different samples for both Image Uploader for ActiveX and Image Uploader for Java. You could try them and choose which to change according to your needs.

Sincerely yours,
Alex Makhov
mcoruh
Posted: Wednesday, March 05, 2008 9:30:51 PM
Rank: Newbie
Groups: Member

Joined: 3/5/2008
Posts: 2
Points: 6
We are testing ImageUploader control to upload files into dynamically created directories. We could not set your galleryPath variables value to a textbox.text (txtPatientID.Text )value on the page. Here is the code:

Protected Sub ImageUploader1_FileUploaded(ByVal sender As Object, ByVal e As Aurigma.ImageUploader.FileUploadEventArgs) Handles ImageUploader1.FileUploaded

Dim galleryPath As String = txtPatientID.Text '"./Gallery/"

Dim fileName As String = Path.GetFileName(e.File.FileName)

e.File.SaveAs(Server.MapPath(galleryPath + fileName))

End Sub

Any suggestions

Thanks
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.