Rank: Member
Groups: Member
Joined: 7/10/2006(UTC) Posts: 18
|
Hi!
Is it possible to let the user select which directory he uploads his pictures to? I 'm building av page that will do just that, but I can't find any documentation describing it.
Thanks, Scarabee!
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello Scarabee,
You have to change the upload processing script to create folders according to user account information and save files there. Now there is no Image Uploader sample to write to the specific folder according to the user name or something. |
|
|
|
|
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)
|
Scarabee, Image Uploader is just a client-side control which doesn't depend on server upload scripts. All server sample shipped with Image Uploader evaluation package are just sample how to process the uploaded data. These samples are not part of Image Uploader itself. To provide folder selection you can attach additonal form and use these data to set the path for saving pictures. Please say us your server platform (ASP.NET, PHP, JSP, Ruby) and will post you the detailed sample. Edited by user Wednesday, October 29, 2008 12:08:57 PM(UTC)
| Reason: Not specified |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/12/2006(UTC) Posts: 2
|
Hi !
Could you send me an exemple of this for php, thanks
|
|
|
|
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)
|
Hey,
I will post sample PHP right after weekends. |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/12/2006(UTC) Posts: 2
|
I didnt receive anything, which weekend ? :P:P:P:P:P:P:P
|
|
|
|
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 am sorry for delay. I have attached simple sample. Please note, that it is not secure approach to send the path directly in GET or POST request. Here is screenshot: You can find source code archive in attachments. Edited by user Monday, December 21, 2009 2:38:52 AM(UTC)
| Reason: Not specified File Attachment(s): Fedor attached the following image(s): |
Best regards, Fedor Skvortsov
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Hi Is there anywhere I can find an example where the upload (gallery folder) can be specified from an SQL database Example idea Code:<Script>
GalleryDir= "./Gallery/" & SQLDir
<Script>
<div class="leftblock">
<asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:ClubSiteDB %>"
SelectCommand="SELECT Top 10 id, Date, Gallery_name, Link FROM Gallery order by date DESC">
<SelectParameters>
<asp:Parameter Type="Int32" DefaultValue="1" Name="id"></asp:Parameter>
</SelectParameters>
</asp:SqlDataSource>
SQLDir = Gallery_name & "/" & Date & "/"
Hope that makes sense :blush: Edited by user Tuesday, December 18, 2007 8:09:14 PM(UTC)
| Reason: Not specified |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello,
There is no such sample in the standard Image Uploader sample set. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Have you any plans to make a sample? Or has anyone else tried this? Thanks Chris Cee Fusic.co.uk |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello,
As about standard Image Uploader samples, the answer is No, we are not planning to make such sample at the nearest time. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Could you help me with the code then, maybe some pointers? |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Can you e-mail me the selectfolder example as I when I download it the Zip file is empty!
Thanks |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello,
The better way it to fix the Zip file link. Where did you download it from? |
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
The link on the first page of this post!
could you just re-post the link?
Thank you!"
|
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Quote:Fedor (7/31/2006)I am sorry for delay. I have attached simple sample. Please note, that it is not secure approach to send the path directly in GET or POST request. Here is screenshot: You can find source code archive in attachments. it was atached to this message Edited by user Monday, December 21, 2009 12:26:14 PM(UTC)
| Reason: Not specified |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Hi
have you had any luck finding the sample above?
Thanks |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, Try this message attachment. |
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 8/3/2003(UTC) Posts: 998
|
Hello, I have posted the ASP.NET SelectFolder sample here. |
|
|
|
|
Rank: Member
Groups: Member
Joined: 11/22/2006(UTC) Posts: 13
|
Hi
Thanks for your help so far, I was wondering if you have the above sammple in VB as I can't work out have to get this working within my application which is all VB.
Thank you in advance.
Chris |
My First and only Asp.net site
<a href="www.fusic.co.uk">FUsic.co.uk</a>
|
|
|
|
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.