473,387 Members | 1,624 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,387 software developers and data experts.

upload files from web client to web server

On my local machine when I test my Dot Net web app I have no trouble in uploading a file to a folder.
When I try the same from remote client to web host - failure every time.
Permissions are granted to read/write/modify/... on folder.

Either I am not addressing the folder on the server.
or
there may still be other permissions I need to set
My code reads:

FileInfo uploadedFileInfo = new FileInfo(uploadedFile.FileName);
.........
fileName = uploadedFileInfo.Name;
savePath = Server.MapPath("CVStore") + "\\";
cvFileN = uploadFileName;
cvFileName = savePath + cvFileN;

uploadedFileInfo.CopyTo(cvFileName, true);
Suggestions welcome
Thanks
Jul 21 '05 #1
1 1312
How do I get to display the error at the client side from where I am testing
Thanks

"Sudhakar Sadasivuni[mvp]" wrote:
Check whether the permissions are given for the particular user logged in to that web application/ASPNET account...

could you provide the error that u r getting?

Sudhakar Sadasivuni
IB@ http://weblogs.asp.net/ssadasivuni
MyGroup : www.mugh.net
"SibAndela" wrote:
On my local machine when I test my Dot Net web app I have no trouble in uploading a file to a folder.
When I try the same from remote client to web host - failure every time.
Permissions are granted to read/write/modify/... on folder.

Either I am not addressing the folder on the server.
or
there may still be other permissions I need to set
My code reads:

FileInfo uploadedFileInfo = new FileInfo(uploadedFile.FileName);
........
fileName = uploadedFileInfo.Name;
savePath = Server.MapPath("CVStore") + "\\";
cvFileN = uploadFileName;
cvFileName = savePath + cvFileN;

uploadedFileInfo.CopyTo(cvFileName, true);
Suggestions welcome
Thanks

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Stephane | last post by:
Hello, I need to allow an end user to upload video files on a server and in the same time to put the file name and a few infos in a database. It must be very simple for the end user, and...
0
by: ShaSha | last post by:
Hi, I am trying to upload XML files via HTTP to an HTTP server from java client instead of browser. On the HTTP server side, there is a Perl script that will be receiving the incoming file and files...
5
by: tolgademirel | last post by:
I am creating a web application which needs to access data which resides on the client's computer. The data is a bunch of text files that are stored in a folder. I need all of those text files....
10
by: Alphonse Giambrone | last post by:
I am trying to develop a web service to accept a file uploaded via http post from a vba (Access) application. Thanks to helpful links in a vb newsgroup and my previous work with WinInet api I was...
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...
1
by: Alex | last post by:
I am having issues with a script to upload files from a client to a webserver. The problem is not with the actual upload but with where it uploads. The whole process is supposed to create a...
7
by: pbd22 | last post by:
hi. i am having probs understanding how to grab a file being uploaded from a remote client. i am using hidden input fields for upload such as: <input id="my_file_element" type="file"...
3
acoder
by: acoder | last post by:
How to Upload a File in Coldfusion Use the cffile tag for uploading files to the server. Note that allowing people to upload files is fraught with danger and only trusted users should be...
1
by: avias | last post by:
Hi All, Could anyone please help me with this:- I am developing a web application using asp.net and I want to upload files automatically from the client to server. The paths(directory...
3
by: mp33487 | last post by:
I'm trying to upload/download files programmaticly to a records management system. I have it working fine on my dev machine using vb.net code-behind pages but when I place it on the server when it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.