473,320 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

upload with authentication

I am using ActiveXobject to copy JPG file from client machine to server machine.
Following is the code snippet
Expand|Select|Wrap|Line Numbers
  1. var objFSO = new ActiveXObject("Scripting.FileSystemObject");
  2.  
  3.     if (objFSO.FileExists(data.value)) {
  4.         var filestr = objFSO.GetFile("C:\\temp\\tmp.jpg");
  5.          var temp = "\\\\serverip\\Share\\tmp.jpg";       
  6.         filestr.Copy(temp);
  7.  
  8.     }
i need to add server credententials to copy jpg file from client to server
Is there any way to add authentication for server in above scenerio?
May 25 '09 #1
2 1758
jhardman
3,406 Expert 2GB
In classic ASP, authentication has to be programmed manually, that means setting up a form and validating the input. Or if you are just checking that the client is on a particular network layer (for an intranet, for example) then you just need to check the request.servervariables for the sender IP. Do either of these options sound like what you want to know?

Jared
May 26 '09 #2
Nicodemas
164 Expert 100+
@vini rally
Can you explain "server credentials" and "authentication" in this case?

Are you trying to ensure the person doing the uploading is on a particular Active Directory domain, or user group?

Is the "authentication" arbitrary, e.g. an assigned username/password not controlled by the server?

Are you trying to ensure the user is on a particular network (IP submask)?
Jun 17 '09 #3

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

Similar topics

11
by: Thomas Mlynarczyk | last post by:
Hello, I want to upload files via an HTML form and store them somewhere on my webspace. So far so good. I am just a bit concerned about security issues and traffic. My provider has set a file...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
2
by: Brian Madsen | last post by:
Hey guys, I am currently working on a remote file upload utility from an external server to a local server. Problems I face is: 1)the request server cannot be mapped - ie. i can't secure it...
4
by: Manu | last post by:
I want my user to upload a file to the site. Let us say a word file to be saved in the database for other users of the site to use. How can this be done? Is there a web control for that?
4
by: rajesh | last post by:
I am trying to upload a file using .Net's HttpPostedFile.SaveAs() to a share on a remote server. It works fine when the share is on the same server. I looked at the permissions on the share and...
1
by: Stanislav Simicek | last post by:
Hello, I would like to ask for any ideas how to do user authorization for file upload which is done via an external application (not HtmlInputFile control). I have an asp.net web site which...
4
by: Matt Jensen | last post by:
Howdy I've got a rather strange issue occuring. I used forms based .NET authentication, although I'm also setting some session variables when people login. However, I've found when people use...
16
by: lawrence k | last post by:
I've a file upload script on my site. I just now used it to upload a small text document (10k). Everything worked fine. Then I tried to upload a 5.3 meg Quicktime video. Didn't work. I've...
7
by: russell.lane | last post by:
I've been looking at both MTOM and simple HTTP POST or PUT for file uploads. Some relevant details: ... We want to support programmatic file uploads from Winform apps. ... The files are large...
13
by: MCPD | last post by:
hello i have an aspx page that write in javascript its too small file when i upload it to my website i got an error Server Error in '/' Application....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.