Create Dynamic Links To Files For Secure Downloading
Sep 1, 2010
Any Way to be able to access a file externally that is located on an internal network by a simple link. I need a way to generate links to files to dynamically in code. So say for instance I'm writing an outlook add in that strips the attachments from messages if they meet a certain size criteria. then upload the file to a server and post a temporary link to the file that can be accessed any where. I prefer to store the file on an ftp server but for security issues I can't do it that route. is there a way to do this in windows server.
View 1 Replies
ADVERTISEMENT
Feb 15, 2010
I will be downloading updates for my database and client from a separate executable that will only be used for updating.In order to prevent someone from just decompiling my app through reflector and obtaining the password to the FTP server, what would be the best way to store the FTP password?
I was thinking I could create a table in my SQL database and store it there since a SQL database is way more secure than my app.
View 6 Replies
Jul 26, 2010
I have a listbox full of links, and I want to download them. The listbox items' text contains a link to a webpage in each one. Now I want to download each page's code to a file site1.html for example. Also for each file I need to add a number site1, site2, site3 ... How do I do that ?
View 1 Replies
May 23, 2012
I hope this post is in the correct forum. We have a folder on the server that has pdf files. The file names are in the format of 'report_name_propname_04_21_12.pdf'. The report_name is different as is the prop_name and 04 is the month, 21 is the day of month, and the 12 is the year. The goal is to have links on the web page that has the prop_name(s). When clicked it would display a list of months as links. ie 01,02,03,...11,12 under the propname link. When these month links are clicked the web page would display
a list of links of the pdf files. The part of displaying the pdf link I have. The question I have is how can this be achived in code? Is there a control for this functionality? I think it is like an Excel pivot table.
View 4 Replies
Jan 28, 2011
having a modal window spawn for a secure asp.net site. I currently have a asp test site setup which when the user clicks on the login link it opens the standard asp.net login page (login.aspx) within a modal telerik RadWindow. I am calling this page using javascript and this works fine.
The challenge I have now is when a user clicks on a link within the page if that link points to a secure section the login screen loads in the main frame of the site vs. a pop-up. I realize why (aka my js funciton is not being called) my question is to work around this would the correct/acceptible approach be to call a method from each link/button that tests for user authenticaiton? If the user is authenticated then redirect to the page otherwise call the javascript funciton to open the window?
UPDATE: I have some progress to now at least determine if the user is validated. Since I am using forsm auth I can test this using ISAUthenticated
public void LinkButton_Click(object sender, EventArgs e)
{
if (Request.IsAuthenticated == false)
{
[code]....
View 1 Replies
Jun 16, 2010
I Have this code in my page, and I want that every NavigateUrl display another page like :
simple.aspx?id=1, simple.aspx?id=2, ...
[Code]...
View 1 Replies
Nov 26, 2010
I need to ftp collection of files through secure ftp
1.i need to open connection then transfer all files and close connection, the connection should open only once
2.The FTP should be secure
View 1 Replies
May 3, 2011
I am making a windows form and through this form i want my users to upload and download files stored in a Directory on a machine running windows 2003.Could anyone please tell me the best and secure way to share files on a directory for users to Upload and download and "without letting the users to know the actual path"..User Clicks on a Button and it will automatically download the files from server.User Clicks on another Button and it will automatically upload the files to server.The file name and paths will be taken from labels which are hidden on my form so the user doesn't need to specify anything..I have 3 Options and looking forward to some expert opinion on this. My main concern is to never reveal the location to users and smooth upload and downloads.Is there any better option..i mean from my windows form perspective only and not talking about firewall settings, folder permissions etc...or any 3rd party software to protect data.[code]
View 2 Replies
May 15, 2012
I have some exe files that I've uploaded into my database as I don't want them to be publicly accessible. I tried using a link button and a generic handler to serve the file using the following code:
Context.Response.Clear()
Context.Response.ContentType = "application/exe"
Context.Response.AppendHeader("Content-Disposition", "filename=program.exe")
Context.Response.BinaryWrite(binaryfile)
The problem: Google Chrome does not treat the download as any other exe, instead after downloading it reports "program.exe is not commonly downloaded and could be dangerous." with a "discard" button and the option to "keep" the download is hidden under a context menu.
serve exe files stored in the database?
View 2 Replies
Jun 6, 2011
Im currently working on a program that will download some files and place them inside a folder. The tricky part is that the folder they have to be puttet into is a .jar file. The jar file is always the same place, and that is in %appdata% the full location would be "C:UsersBrugerAppDataRoaming.minecraftinminecraft.jar". With "minecraft.jar" beeing the destination for the files
Ps. Im trying to create a mod installer, since some people are having a little trouble installing mods for minecraft. Minecraft can be found at [URL]
View 2 Replies
Mar 9, 2009
I have been trying to download the file from a virtual directory ( which is pointing to some other location) within the web-folder. I have implemented 2/3 ways on doing that, but none of the ways download the file. The asp .net page is not even showing the error, its showing a blank screen. One of the pice of code I implemented is:
<code>
filename = LinkButton2.Text
filepath2 = Server.MapPath("/folders/") & uname & "/" & filename
HttpContext.Current.Response.ContentType = "application/octet-stream"
[code].....
View 2 Replies
Jun 23, 2010
All im trying to do is make a program that downloads all the files i want offline and but them in a folder, but when i go to the folder and look at the downloads they are all empty,
Here is my code.
Code:
View 1 Replies
Nov 16, 2011
I have about 170 files on the server with the sameending Eix and EPK in the "pack".It would have to withdraw all my files to a predetermined folder "pack".
View 4 Replies
Jul 30, 2009
I am using the web client to download a file. Which works ok. However, now I have to download many and the number of files to download will change everyday. I am not sure how I can get the web client to know which files have been downloaded or not? I was thinking of using a for loop to download each file. But I will never know how many there are to download? The web client could download the same file twice?
[Code]...
View 5 Replies
Aug 18, 2010
I've come up with a way of downloading multiple files specified in a txt doc held on a web server. The problem is it only downloads files not folders, im using the following from the codebank to download the files currently:
Try
mCurrentFile = GetFileName(URL)
Dim WC As New WebClient
WC.DownloadFile(URL, Location)
RaiseEvent FileDownloadComplete()
Return True
Catch ex As Exception
RaiseEvent FileDownloadFailed(ex)
[Code] .....
Can I modify this to allow downloading of folders too or will I have to use a completely different method?
View 2 Replies
Jan 10, 2011
I'm trying to code a program that can download multiple files at once (on different threads of course). I have created a custom listview component that will allow me to add a progressbar directly to it. What my real question is, how can i take a url given by the user from an input box and create a new webclient to handle the downloadasynchronously
View 2 Replies
Dec 28, 2011
[URL]..it just comes up with an error. am i doing it right? and is there any way i can just download it to the same folder that my program is in no matter what computer its on?
View 13 Replies
Apr 28, 2011
im trying to write an updater for my program and im checking the version by downloading a .txt file. however its coming out blank. this is the first time ive done something like this so i probably noobed something bad.[code...]
View 12 Replies
Apr 9, 2009
Basically I want to create a little program with 5 or so text fields where I enter the specific names of movies. Upon pressing a "go" button it then does a google search(with certain criteria) for all textfield entries on the website [URL} and then download the files, if possible without opening a browser.
Search criteria:
-only video formats(.avi .mov etc)
-download url contains the "_de" tag (to insure german trailers)
That way it should hopefully find the right trailer and download it. If possible have it use progress bars.
How much work do you think this is? Or is it even possible? From a logical standpoint I don't think it's too much work... I am using Microsoft Visual Studio 2008 Express Edition. My project currently is just full of test code but I will post it anyway:
Code:
Public Class Mainwindow
Private Sub Mainwindow_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code].....
View 3 Replies
Mar 4, 2010
I would like to know how to do the following :
View 2 Replies
Oct 31, 2010
Here is this code of the webpage:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
[code]....
View 4 Replies
Nov 11, 2011
I just have 1 listbox which got link in there. How can I download each file using background_worker + progressbar(current file download)?
View 5 Replies
Dec 22, 2010
I want to download a list of files and report whether or not each file exists or contains certain qualifiers. The files are text/web documents, with maximum sizes of about 200 KB.
I am using a For loop to iterate through the links, which are placed in an array. The problem is that while my loop is going on, all of my forms become frozen and any status updates I want to show in my forms essentially do not show up because the UI is stuck.
Is there a better way to free up the UI than using DoEvents()? I recall from a previous post that the way my function is being called, it's being called from the UI thread,. Therefore I should just start a new thread so my UI thread doesn't get hung up downloading all the files? Or should I use a timer and download each file at a specific interval so that there's some downtime in between files that allows for me to change the status to tell the user that my program isn't stuck?
Edit and side question: I just realized something really...bad. Basically in my program I play around with DOM for a WebBrowser in my main form. I'm working with a lot of the elements in the document, but they don't always exist because each page takes time to load based on a user's internet connection speed. I WOULD HAVE used a While loop to check if certain elements exist or not, but in the past when I used VB6 I noticed that this causes massive program hangs...so I used a timer instead. But those hangs were the exact same type of hang I seem to be having with this downloading files business.
Now, I just moved from VB6 to .NETa few days ago. But I just read that the reason I used timers in VB6 was because VB6 didn't support multi-threading. So...for all of those instances where I should be using a While loop instead of a Timer, should I just place that While loop code in a new thread so the UI doesn't freeze up?
If so, I am greatly relieved and I can make my code 10 times less ugly. But I will also rip parts of my hair out because it took me like a 100 hours of debugging to get my really crappy timer code working.
This is my code so far:
Code:
Private Function analyzeURLs() As Integer
Dim k As Integer
'did we make it through without any errors?
[Code].....
View 2 Replies
Aug 19, 2010
I was wondering if there was anyway to 'scan' page sources of websites and download only certain files based on their extensions, as you would by going to view -> page source in a web browser? Then, saving, perhaps, a .pdf, or a .swf file? I really don't know where to start.
View 6 Replies
Oct 31, 2010
I'd like to convert a VB6 application to .Net. It downloads multiple files at once and the progress is shown in a Listview. I'm using the Winsock control in a Usercontrol. Every time I start a new download a new instance of the Usercontrol is loaded. This way I can easily download 25 files at once with very low CPU usage.
I looked into the WebClient Class to download the files, but I noticed it only downloads two files at a time. Other downloads won't start unless one of the first two downloads are finished, but maybe I'm doing something wrong.
1) What's the best way to download dozens of files at once? It must be possible to resume the downloads.
2) How do I keep the downloads apart (index number?), so the Listview can be updated accordingly? I don't need help with the Listview itself.
3) Should I use the Backgroundworker or not?
View 11 Replies
Mar 11, 2011
I'm using a WebClient to download a bunch of small files from a website, but doing them one at a time takes a long time, approximately 20-30 minutes for all of them. Is there a way to download multiple files simultaneously, to shorten the time it takes?
View 1 Replies
Mar 11, 2012
if I had the full path of a .swf file on a website: eg [URL]
I'd have the webbrowser1 navigate to the address as shown before.
Then i'd like to webbrowser to download the file, in compatibility with a savefiledialog.
View 2 Replies
Oct 14, 2010
I have used many different "snipets" of code to download .txt from the interent however, each time, instead of showing [code]All failed to put it exactly how it is set out in the beginning. So I was wondering can anyone fix this? I do have a button to press so it downloads it and my declarations are:
-Imports System.IO
-Imports System.Net
View 10 Replies
Jun 13, 2011
I'd like to know if there's a way to save all files that are being downloaded trough the Web Browser I've made in my Visual Studio 2010 to a specific location ,by letting user to chose option save file without knowing where it saves.Or maybe to don't show the "save file" thing at all.
View 2 Replies
Apr 5, 2011
I would like to create a secure login page for a pre-defined set of users (so no creating username/passwords by the users themselves). I've looked up a few sites and they all seem to suggest using Microsoft's Membership or something. I am not very sure as to why that's used, but all you need to know is that I will be creating the login details. I just need to make the login secure, ie, no duplicate logins, no logins from different browsers and cookies and sessions and encryption and all that. Any one have the code/links to where I can get all this?
View 1 Replies