quanp
Posts:4
 |
| 04/19/2009 11:38 PM |
|
Hi, i install and run SilverLightUploader with DNN 4.9.2. I create a folder under DesktopModules and copy all the files to that folder: FileUpload.ashx(.cs), FileUpload.xap, Upload.ascx(my control). I copy the DC.SilverLightUpload.dll to the bin folder. I can add and use the control in my website. But it only upload to folder [Upload] at root folder. I try to modify the value of [uploadPath] in the FileUpload.ashx.cs but it still upload to the same old [Upload] folder. Looks like it doesn't matter what the value of [uploadPath] is (i delete all the code inside FileUpload.ashx.cs and it still work, of course it uploads to [Upload] folder). Can anyone help me with this? Thanks a lot. |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 04/20/2009 5:17 AM |
|
You can change the path in the "FileUpload.ashx" file. Change the line: string uploadPath = context.Server.MapPath("~/DesktopModules/SilverlightFileUpload/Upload"); Where did you get the "DC.SilverLightUpload.dll" file from? it is not in the "SilverlightFileUpload_01.00.00_Install.zip" package. |
|
|
|
|
quanp
Posts:4
 |
| 04/20/2009 11:31 AM |
|
Thanks for responding. I did try to change the path in "FileUpload.ashx" but it still didn't work. As i mentioned before, even if i delete all the code in that file, it still upload to the Upload folder at root level. And the DLL i got from this package:http://www.codeplex.com/SilverlightFileUpld. Are they not the same? Thanks. |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 04/20/2009 1:01 PM |
|
If you just change the string uploadPath = context.Server.MapPath("~/DesktopModules/SilverlightFileUpload/Upload"); and NOT change anything else, it shoud work. The DC.SilverLightUpload.dll is a different project. We use their code but it is a different implementation. |
|
|
|
|
quanp
Posts:4
 |
| 04/20/2009 9:04 PM |
|
Thanks for the help. I use your module and it works perfectly :D I have one more question: can i specify the upload folder via module interface? If a customer want to choose the upload folder, i can't ask him to modify the code himself. Also, if there are multiple users and each has their own folder, how can i make the uploader to upload to the corresponding folder? Thanks a lot. |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 04/20/2009 9:58 PM |
|
| You can make the changes but it would take custom coding. It's too many steps to describe in a forum post. |
|
|
|
|
quanp
Posts:4
 |
| 04/21/2009 12:17 PM |
|
| Alright, i'll work with it then. Thanks a lot :) |
|
|
|
|
Michael Washington (host)
Posts:2
 |
| 06/28/2009 2:02 PM |
|
In Silverlight File Uploader 2.0 you can now change the path of the upload files. see: http://dnnsilverlight.adefwebserver.com/Silverlight20/PersonalFileUpload/tabid/77/Default.aspx |
|
|
|
|
ErgoDave
Posts:1
 |
| 09/26/2009 12:00 AM |
|
[quote]Posted By Michael Washington (host) on 06/28/2009 2:02 PM In Silverlight File Uploader 2.0 you can now change the path of the upload files. see: http://dnnsilverlight.adefwebserver.com/Silverlight20/PersonalFileUpload/tabid/77/Default.aspx[/quote] We using the Silverlight File Upload 3 - Excellent Xap Does the upload files path support [Tokens] for example c:\myddnstuff\users\[User:UserName] |
|
|
|
|
Michael Washington (admin)
Posts:129

 |
| 09/26/2009 5:27 AM |
|
[quote]Posted By ErgoDave on 09/26/2009 12:00 AM We using the Silverlight File Upload 3 - Excellent Xap Does the upload files path support [Tokens] for example c:\myddnstuff\users\[User:UserName][/quote] no it uses: c:\myddnstuff\[Portal number]\[User number] This is the only "safe" way to do it. If you had user names with special characters the file system or the web services would probably choke on it. |
|
|
|
|