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

Notification

Icon
Error

Options
Go to last post Go to first unread
sinoppk  
#1 Posted : Tuesday, October 04, 2005 12:17:40 AM(UTC)
sinoppk

Rank: Member

Groups: Member
Joined: 9/10/2005(UTC)
Posts: 3

How to specify path so that different users can upload to different subfolders? I mean, if different registered users have different account names, so they could login and upload to their personal subfolders under GALLERY. I wonder how to specify "strGalleryPath"?
karaoke
sinoppk  
#2 Posted : Tuesday, October 04, 2005 1:27:21 AM(UTC)
sinoppk

Rank: Member

Groups: Member
Joined: 9/10/2005(UTC)
Posts: 3

I search the forum and find a related post, however, it uses PHP language. I wonder how to specify the path with ASP code.
karaoke
Fedor  
#3 Posted : Friday, October 07, 2005 8:27:37 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 3 times
Was thanked: 40 time(s) in 39 post(s)
Hello, I am sorry for delay.
Quote:
sinoppk (10/4/2005) I search the forum and find a related post, however, it uses PHP language. I wonder how to specify the path with ASP code.
For example you can store user name in session object and then in *upload.asp set root gallery folder based on it:
Code:
strGalleryPath = "../Gallery/" & Session("UserName") & "/"

Edited by user Sunday, February 17, 2008 2:44:29 PM(UTC)  | Reason: Not specified

Best regards, Fedor Skvortsov
sinoppk  
#4 Posted : Sunday, October 09, 2005 2:21:17 AM(UTC)
sinoppk

Rank: Member

Groups: Member
Joined: 9/10/2005(UTC)
Posts: 3

Thank you very much. A further question, if I specify the path as follows:
Code:
strGalleryPath = "../Gallery/" & Session("UserName") & "/"
when the user login with LoginName, where and how should I modify in PictureGallery.asp to show only the pictures under the LoginName or Username?

Edited by user Sunday, December 23, 2007 5:15:52 PM(UTC)  | Reason: Not specified

karaoke
Fedor  
#5 Posted : Thursday, October 13, 2005 1:21:06 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 3 times
Was thanked: 40 time(s) in 39 post(s)
Hello,
Quote:
sinoppk (10/9/2005) Thank you very much. A further question, if I specify the path as follows:
Code:
strGalleryPath = "../Gallery/" & Session("UserName") & "/"
when the user login with LoginName, where and how should I modify in PictureGallery.asp to show only the pictures under the LoginName or Username?
Just use instead of:
Code:
strGalleryPath = "../Gallery/"
the same code:
Code:
strGalleryPath = "../Gallery/" & Session("UserName") & "/"

Edited by user Sunday, December 23, 2007 5:16:17 PM(UTC)  | Reason: Not specified

Best regards, Fedor Skvortsov
gary0318  
#6 Posted : Sunday, April 12, 2009 5:43:31 AM(UTC)
gary0318

Rank: Newbie

Groups: Member
Joined: 4/12/2009(UTC)
Posts: 1

Could I collect the user's email address from a html form, and use that in place of the session(username)? If so, how would I code this?
Dmitry  
#7 Posted : Monday, April 13, 2009 6:10:54 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello, The idea will be the same as Fedor wrote before. You need to make a user to enter login (email) and password somewhere on your site. After that you need to add this email to cookies on the page where Image Uploader is hosted and perform upload. After upload completes you will be able to get this email from cookies on your upload server page. The syntax will depend on the server platform you are using.
Sincerely yours, Dmitry Sevostyanov UserPostedImage Follow Aurigma on Twitter!
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.