Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
How to specify path so that different users can upload to different subfolders?
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"? |
|
|
|
|
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. |
|
|
|
|
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)
|
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
|
|
|
|
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 |
|
|
|
|
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)
|
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
|
|
|
|
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?
|
|
|
|
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. |
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
How to specify path so that different users can upload to different subfolders?
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.