By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

How to download file from NAS using classic ASP?

P: 2
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,
NAS IP: 113.3.103.2
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="//113.3.103.2/share_partition/uploadFile/"
  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 113.3.103.2 not response.Is it means that permission are not apply in IIS for this application to access the NAS?


edit:
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
Share this Question
Share on Google+
3 Replies


Rabbit
Expert Mod 10K+
P: 12,369
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

P: 2
It is for Intranet site.forgot to tell you that NAS I am using now has an account created to access it.
examples:
username: iamuser
pswd: test2013
Feb 20 '13 #3

Rabbit
Expert Mod 10K+
P: 12,369
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.