468,505 Members | 1,782 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

How to download file from NAS using classic ASP?

Hi there,

I am new here and still learning about programming. Can anyone tell me about how to download a file in NAS using Classic ASP?

For an examples information,
share folder in NAS/partition: share_partition
folder: uploadFile

And here is an examples of snippet code I try.

Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim fname,path_test2
  3. fname="test.png"
  4. path_test2="//"
  5. %>
  6. <table width="100%" cellspacing="0" cellpadding="0" border="0" class="doctext">
  7.   <tr>
  8.     <td>&nbsp;&nbsp;<a href="<%=path_test2&fname%>" target="_blank"><%=fname%></a></td>
  9.   </tr>
  10. </table>
Can someone of you,as my senior in programmer,teach me about this.I use this UNC but cannot download the file.The error tell, that not response.Is it means that permission are not apply in IIS for this application to access the NAS?

I already put the impersonations account of NAS in IIS web application authentications.To give access for this application into NAS.

Thanks in advance for helping me.
Thank you.
Feb 20 '13 #1
3 1683
12,513 Expert Mod 8TB
Is this for an intranet site or an internet site? Someone on the internet is not going to have access to your intranet's internal IPs. You will have to copy the file a folder on the website's root and link to that.
Feb 20 '13 #2
It is for Intranet site.forgot to tell you that NAS I am using now has an account created to access it.
username: iamuser
pswd: test2013
Feb 20 '13 #3
12,513 Expert Mod 8TB
Well, that account doesn't really matter. You're just linking to that location, that requires no permissions. When the user clicks the link, it will use that users permissions to actually go to that location. So unless the user actually has access to that location, they're not going to be able to access it.
Feb 20 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Vasu | last post: by
3 posts views Thread by Geethu03 | last post: by
35 posts views Thread by keerthyragavendran | last post: by
4 posts views Thread by pplers | last post: by
5 posts views Thread by vinodkus | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.