Asp.net - Ajaxuploader To Save File To Different Server?
Jan 24, 2011I'm searching for a way to upload file by ajax-uploader component or ASP:Fileupload to different server then the application is running on, is there a way ?
View 1 RepliesI'm searching for a way to upload file by ajax-uploader component or ASP:Fileupload to different server then the application is running on, is there a way ?
View 1 RepliesHow do I upload a file on the web server and save the link of the file in a database?
View 3 RepliesWhat kind of path would I use to save a file (.pdf) on another server/network drive?
Say I have rights to a network drive 'optamail1' and a folder there called datasheets. I can access this folder from "Run" using \optamail1datasheets, however, this kind of path will not work in my application. Has anyone tried doing this before?
What is the best way to insert and retrieve images like :
In the database in binary form retrieve it with imagehandler, or
In the database by saving the path of the folder of the images and retrieve it, or
by saving the images directly to the folder and retrieve it...
this is my problem:
I have a link to Open a file (I have found this way cause with a simple link it would have been marked "readonly")
<a href="../DownloadFile.aspx?file=test.xls"> Open file
</a>
The code in the .aspx page permit to download the file with the header
Response.AddHeader("Content-Disposition",
"attachment; filename=" & file.Name)
So when the user click the link he is prompted wiht a Message box saying:
Open Save
The user click Open...modify the excel cells... but when he wants Save the file (from Excel menu) is saved on a temporary folder on the client pc and not on the server.
Is it possible to save the file directly on the server or not?
Ps. The "real" problem might be that when the user click "Open" in the prompt tha file is first downloaded in the temp folder and then presented to the user
I have an XML file that generated by a Codebehind (.cs) of an .aspx page. And everytime it must be generated automatically and must be saved on Server. It works on my local machine, but how can I do it on Server (host)?n local I managed it like:xmlDoc.Save(Server.MapPath("~")+filename);
View 2 RepliesI am using asp.net 3.5. And i am serializing an object in server, I rent a hosting and i want to modify something in a dinamic way with XML,
This is my code :
Stream writer = new FileStream(Environment.CurrentDirectory + @"public_html" + nombrearchivo.Text, FileMode.Create);
serializer.Serialize(writer, p);
this is my error massage:
Exception Details:
System.UnauthorizedAccessException:
Access to the path
'C:WindowsSysWOW64inetsrvdasd.xml'
is denied.
Without using fileupload control, what is the way to store a file from client machine to web server.
FYI, a text box has the path the client machine file.
My code is not being allowed to save an xml file in a folder on my server. Why is this?
you can see the error page here.. http://www.deutsch-english.org/
It seems to say something about not being authenticated and adding users to the config file. However this code has nothing to do with any users or groups, I just want it to always have permission to save files on the server. The code is purely internal, more like the core innerworkings of the site, it has nothing to do with users. I don't want to have to authenticate it, it shouldn't need authenticating, I just want it to work.
I have one requirement from client where they want to browse and save their choice Logo image in a website which i am developing.
Really i don't know how it happens and Is there any issue like security i need to consider while implementing this logic?
How user (client) will browse image file and where should i store that file in server?
Every indivisual user can browse file of different size and different name; how can i manage at server side so that image appear at right place and in right manner?
Where should i store image corresponding to user id at server; i.e. in database or file?
I need to know the best way to have a user click a link that will download a file that is out on the server and save it to a specific location on their computer. The file is a custom template for Microsoft Outlook signature. Thus, it has to be in a certain folder and this folder will have a different location if the user has Windows 7 vs Windows XP.
I wrote a ASP.NET page that captures the user that is logged in and use WebClient.DownloadFile to download the file. However, I am getting an access is denied error. Apparently my server doesn't have access to write to the user's folder. My questions are.
1. How do I solve this and make it so that my server can write to the user's PC?
2. Is there a better way to roll out a custom Outlook template that the entire company should use?
If i want to create a web site that take your picture and share it for your friends, what the best way to save the picture files on server? What the way is safer for the picture files? What the way has the best performance?
View 9 RepliesI am currently developing an ASP.net application, where I generate a word document in server and I want to save it in client machine who access that feature with out user interactions. How can I download it and save it in client machine, using javascript?
View 3 RepliesI was wondering does anyone know how to save a file to the sever without using a fileupload? What I have is a file that is dynamically created as a .CSV file. Here's that part of the code:
[Code]....
How can I save that to the server instead of poping up a Save/Open dialog box?
I have the following scenarion. I set a variable to a very long string. I then want to save the contents of the string into a file 'c:ewFile'.
declare @tableHTML nvarchar(max)
set @tableHTML = ...
--now i want to save the value of @tableHTML into a file called 'c:
ewFile'.
I am having one Event Registration form in that I need to provide one control with which user can attach file it may be pdf file or jpeg(Image). Any sample so that to save pdf file or Image file in DB and how to retrieve it.
View 1 RepliesI have a file on the server that users will have the possibility to download to thieir computer. For example the filepath could look like below. How would it be possible to save this to the desktop or C: etc.. ?
[Code]....
What I am doing seems to be saving the Excel file in a text format. All I am trying to do is save the Excel file (xls) on my web server. Below is the code that "fetches" it now but doesn't save it in the proper format.
[Code]....
i believe That Saving Files In DataBase is good for Security Issue , But in My Scenario i didnt Care about Secrurity Issue,
i want to ask U guys which Better Save Files into DataBase or save it on Directory on Server, where This Issue Required:
1-(Reduce Load on Server and didnt affect server Memory).
2- Security not important.
if they have the same result i will move to DataBase Saving.
I am executing the following T-SQL code, which runs successfuly according to message I see at end of its execution, but the file c:cptest.txt is never created. I have checked for this file and it doesn't exist. what is the issue here?
EXEC MASTER..xp_cmdshell 'bcp "SELECT top(10) from Person.Address" queryout "C:cptest.txt" -T -c -t,'
i have get the piece of code from www.aspsbippets.com
protected void ExportToWord(object sender, EventArgs e)
{
//Get the data from database into datatable
string strQuery = "select CustomerID, ContactName, City, PostalCode" +
" from customers";
SqlCommand cmd = new SqlCommand(strQuery);
DataTable dt = GetData(cmd);
//Create a dummy GridView
GridView GridView1 = new GridView();
GridView1.AllowPaging = false;
GridView1.DataSource = dt;
GridView1.DataBind();
Response.Clear();
Response.Buffer = true;
Response.AddHeader("content-disposition",
"attachment;filename=DataTable.doc");
Response.Charset = "";
Response.ContentType = "application/vnd.ms-word ";
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
GridView1.RenderControl(hw);
Response.Output.Write(sw.ToString());
Response.Flush();
Response.End();
}
this code create word documnet and automatically downloaded to visitor machine, how i can save it on server rather than visitor machine?
I'm trying to write code that will allow a user to click a button and be prompted to save an image file that resides on the web server. I'm using the following code, but I get an error that says "Error: Could not complete the operation due to error c00ce514.".
[Code]....
I have verified that the file exists. Is there another method for prompting users to save a file to their local machine?
Is that a way to edit excel file on browser and then save it on server?
View 5 Repliesi'm developing a system with asp.net, there i generate a powerpoint presentaion in the server machine, i need to generate it there and save it in the clients machine, how can i achieve this? how to access the clients machine and save the generated file there?
View 3 RepliesI want to save zipped file on server disk using DotNetZip in ASP.Net .... This code creates zip and download it in client side download folder..
ZipFile zip = new ZipFile();
List<Attachment> listattachments = email.Attachments;
int acount = attachments.Count;
for (int i = 0; i < acount; i++)
[Code] ....