473,815 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ftp upload with mac browser using asp.net

psb
I have a file upload Web page using
System.Web.UI.H tmlControls.Htm lInputFile. Anyone have any issues uploading
files using MacOS browsers of any sort?? Almost all of them bomb on our
server. Is there something I need to put in the web.config or page
directive that will allow ftp uploading on a Mac. What is funny is we have
a ClassicASP file that does this, and it is WAY more reliable. It is nasty
code -adodb.streams and all... Asp.net really wrapped all of that junk,
although it isn't working the .net way. I really don't want to purchase a
ActiveXDll control that does the same thing, or purchase an active x control
that clients will mess up... I just want a simle <input type="file"
id="file1" runat="Server" />

-Paul

Nov 18 '05 #1
4 1530
What you're describing is NOT FTP, but HTTP. The input type="file" HTML
element sends the uploaded file with the form's HTTP POST request. I am not
aware of any issues with this type of form field in Mac browsers. I would
have to guess that your issue lies somewhere in your server-side code which
is handling the upload. It isn't necessary for you to buy or install
anything, only to debug your code.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"psb" <pb******@msn.c om> wrote in message
news:uI******** ******@tk2msftn gp13.phx.gbl...
I have a file upload Web page using
System.Web.UI.H tmlControls.Htm lInputFile. Anyone have any issues uploading files using MacOS browsers of any sort?? Almost all of them bomb on our
server. Is there something I need to put in the web.config or page
directive that will allow ftp uploading on a Mac. What is funny is we have a ClassicASP file that does this, and it is WAY more reliable. It is nasty code -adodb.streams and all... Asp.net really wrapped all of that junk,
although it isn't working the .net way. I really don't want to purchase a
ActiveXDll control that does the same thing, or purchase an active x control that clients will mess up... I just want a simle <input type="file"
id="file1" runat="Server" />

-Paul

Nov 18 '05 #2
psb
yeah, yeah. http, i hear ya! the code is a cake walk in asp.net... it is
so easy that I feel like I am doing something wrong, and since macOS ONLY
people are nearing 100% failure rate, I though there would be more to it
than a couple lines of code. is this the code I have to check? do you
think I am missing anything?

<input type="file" id="txbUpload" runat="server"/>
----------------------------------------------------
dim sFile as string = txbUpload.Poste dFile.FileName
sFile = GetFileNameWith outPath()
dim sFullPath as string = "c:\tmp\" & sFile
txtUpload.Poste dFile.SaveAs(sF ullPath)

thanks,
Paul


"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:ec******** ******@TK2MSFTN GP11.phx.gbl...
What you're describing is NOT FTP, but HTTP. The input type="file" HTML
element sends the uploaded file with the form's HTTP POST request. I am not aware of any issues with this type of form field in Mac browsers. I would
have to guess that your issue lies somewhere in your server-side code which is handling the upload. It isn't necessary for you to buy or install
anything, only to debug your code.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"psb" <pb******@msn.c om> wrote in message
news:uI******** ******@tk2msftn gp13.phx.gbl...
I have a file upload Web page using
System.Web.UI.H tmlControls.Htm lInputFile. Anyone have any issues

uploading
files using MacOS browsers of any sort?? Almost all of them bomb on our
server. Is there something I need to put in the web.config or page
directive that will allow ftp uploading on a Mac. What is funny is we

have
a ClassicASP file that does this, and it is WAY more reliable. It is

nasty
code -adodb.streams and all... Asp.net really wrapped all of that junk,
although it isn't working the .net way. I really don't want to purchase a ActiveXDll control that does the same thing, or purchase an active x

control
that clients will mess up... I just want a simle <input type="file"
id="file1" runat="Server" />

-Paul


Nov 18 '05 #3
Hi Paul,

I take it you're not using Visual Studio.Net, and can't use Breakpoints?

Interesting that this is only happeining on Mac browsers. I'm curious about
the following lines of code:

sFile = GetFileNameWith outPath()
dim sFullPath as string = "c:\tmp\" & sFile

What does this "GetFileNameWit houtPath()" method do? You might try using
System.IO.Path. GetFileName() instead. I am not very familiar with Mac
browsers, but it may be possible that the path is stripped by the Mac
browser prior to uploading, which is different than the behavior of most
browsers.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"psb" <pb******@msn.c om> wrote in message
news:#o******** ******@tk2msftn gp13.phx.gbl...
yeah, yeah. http, i hear ya! the code is a cake walk in asp.net... it is so easy that I feel like I am doing something wrong, and since macOS ONLY
people are nearing 100% failure rate, I though there would be more to it
than a couple lines of code. is this the code I have to check? do you
think I am missing anything?

<input type="file" id="txbUpload" runat="server"/>
----------------------------------------------------
dim sFile as string = txbUpload.Poste dFile.FileName
sFile = GetFileNameWith outPath()
dim sFullPath as string = "c:\tmp\" & sFile
txtUpload.Poste dFile.SaveAs(sF ullPath)

thanks,
Paul


"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:ec******** ******@TK2MSFTN GP11.phx.gbl...
What you're describing is NOT FTP, but HTTP. The input type="file" HTML
element sends the uploaded file with the form's HTTP POST request. I am not
aware of any issues with this type of form field in Mac browsers. I would
have to guess that your issue lies somewhere in your server-side code

which
is handling the upload. It isn't necessary for you to buy or install
anything, only to debug your code.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"psb" <pb******@msn.c om> wrote in message
news:uI******** ******@tk2msftn gp13.phx.gbl...
I have a file upload Web page using
System.Web.UI.H tmlControls.Htm lInputFile. Anyone have any issues

uploading
files using MacOS browsers of any sort?? Almost all of them bomb on our server. Is there something I need to put in the web.config or page
directive that will allow ftp uploading on a Mac. What is funny is we

have
a ClassicASP file that does this, and it is WAY more reliable. It is

nasty
code -adodb.streams and all... Asp.net really wrapped all of that junk, although it isn't working the .net way. I really don't want to

purchase a ActiveXDll control that does the same thing, or purchase an active x

control
that clients will mess up... I just want a simle <input type="file"
id="file1" runat="Server" />

-Paul



Nov 18 '05 #4
psb
yes, I like the IO library, and yes I am using vs.net. I have never done
any server side debugging with a mac browser. GetFileNameWith outPath() is
something I made up for this post, so you would know we got the filename
only. as I am looking over the code we are not using IO, but doing this...

sSplit = Split(sFile, "\")
sFile = sSplit(Ubound(s Split))

You may have something, so I am going to test it...

In an effor to make ftp access for our clients easy, we have made more
difficulties. 1st we were using IIS's FTP server with Active Directory
Permissions for all of our clients. no matter what, my team was always
called by a sales rep about a client having problems
connecting/authenticating to our ftp site. we then installed a new ftp
server, ServeU. This is fantastic software, although we still had same
problems. So I said, let's just make it as simple as possible with http (5
lines of code, two buttons and txbox). that is why the title of the post is
"ftp...". The problem lies with macs, mac users, and mac ftp client
software.

-p

"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:OU******** ********@tk2msf tngp13.phx.gbl. ..
Hi Paul,

I take it you're not using Visual Studio.Net, and can't use Breakpoints?

Interesting that this is only happeining on Mac browsers. I'm curious about the following lines of code:

sFile = GetFileNameWith outPath()
dim sFullPath as string = "c:\tmp\" & sFile

What does this "GetFileNameWit houtPath()" method do? You might try using
System.IO.Path. GetFileName() instead. I am not very familiar with Mac
browsers, but it may be possible that the path is stripped by the Mac
browser prior to uploading, which is different than the behavior of most
browsers.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"psb" <pb******@msn.c om> wrote in message
news:#o******** ******@tk2msftn gp13.phx.gbl...
yeah, yeah. http, i hear ya! the code is a cake walk in asp.net... it

is
so easy that I feel like I am doing something wrong, and since macOS ONLY
people are nearing 100% failure rate, I though there would be more to it
than a couple lines of code. is this the code I have to check? do you
think I am missing anything?

<input type="file" id="txbUpload" runat="server"/>
----------------------------------------------------
dim sFile as string = txbUpload.Poste dFile.FileName
sFile = GetFileNameWith outPath()
dim sFullPath as string = "c:\tmp\" & sFile
txtUpload.Poste dFile.SaveAs(sF ullPath)

thanks,
Paul


"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:ec******** ******@TK2MSFTN GP11.phx.gbl...
What you're describing is NOT FTP, but HTTP. The input type="file" HTML element sends the uploaded file with the form's HTTP POST request. I am
not
aware of any issues with this type of form field in Mac browsers. I

would have to guess that your issue lies somewhere in your server-side code

which
is handling the upload. It isn't necessary for you to buy or install
anything, only to debug your code.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"psb" <pb******@msn.c om> wrote in message
news:uI******** ******@tk2msftn gp13.phx.gbl...
> I have a file upload Web page using
> System.Web.UI.H tmlControls.Htm lInputFile. Anyone have any issues
uploading
> files using MacOS browsers of any sort?? Almost all of them bomb on our > server. Is there something I need to put in the web.config or page
> directive that will allow ftp uploading on a Mac. What is funny is
we have
> a ClassicASP file that does this, and it is WAY more reliable. It is nasty
> code -adodb.streams and all... Asp.net really wrapped all of that

junk, > although it isn't working the .net way. I really don't want to

purchase
a
> ActiveXDll control that does the same thing, or purchase an active x
control
> that clients will mess up... I just want a simle <input type="file"
> id="file1" runat="Server" />
>
> -Paul
>
>
>



Nov 18 '05 #5

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

Similar topics

3
11770
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a table in MySQL with the path & filename to the image. I have successfully uploaded and performed an update query on the database, but the problem I have is I cannot retain the primary key field in a variable which is then used in a SQL update...
2
2887
by: Gary \(Girish\) | last post by:
Hello: I am using SA-FileUp to enable members to upload their product images to my ISP sever. When member uploaded a new image file, the file name is replaced with the member ID and the old file is then overwrited. Here is the problem: Member can uploaded new image at "Upload page" BEFORE viewing the new image at the "Detail page" without any problem. However, when member 1st viewed the image at the "Detail page" and then upload the...
7
4541
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm" ACTION="UploadAction.asp" METHOD="POST" enctype=multipart/form-data> <input type="file" name="fileName"> //etc ... </FORM>
2
3124
by: msdev | last post by:
As all my users are intranet-based and have the Office package installed. I have decided to stream a server-stored document into a web browser, so that the user can use Microsoft Word to modify the document. (I don't care if this opens it in the browser or in word itself out of the browser, as I have seen it depends on a activeX setting). Now, my problem is to upload the document in the server without too much hassle for the user (i.e.:...
2
6067
by: Tom Wells | last post by:
I have a little file upload page that I have been able to use to successfully upload files to the C: drive of LocalHost (my machine). I need to be able to upload to a network drive from the intranet server. On the line: dirs = Directory.GetDirectories(currentDir) I get "Access to the path "\\les-net\les\Special Projects\ATSPDF" is denied." How do I get the GetDirectories command to user my user ID and password when it tries to hit the...
3
3064
by: Pitcairnia | last post by:
The basic purpose of the site is for authenticated users to post event listings, which often include photographs. The user is faced with a page where they can insert all of the information about the event in a typical form with textboxes, drop down lists, etc. On this page there are also 4 file upload controls where the user can select 0 to 4 images on their file system for inclusion in the event listing. On submit, the images (if any)...
6
3343
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
I have a strange problem when uploading a PDF document to a web-server. When I try this to a web-server running Apache 2 on a FC 4, it fails. Firefox says that the document contain no data. If I upload it to a different web-server running RH 7.3 (an internal test-webserver), it works OK. The PDF document is created by OpenOffice 2.0 from a MS Word document. I have also had it converted to PDF in MS Word that could create PDF documents....
21
34456
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
18
34860
jhardman
by: jhardman | last post by:
Have you ever wanted to upload files through a form and thought, "I'd really like to use ASP, it surely has that capability, but the tutorial I used to learn ASP didn't mention how to do this."? Have you looked around trying to find simple solutions but didn't want to wade through pages of complex code? Have you balked at paying for premade solutions that are probably overkill for your particular project? I'd like to walk you through the...
1
2280
pritipshah
by: pritipshah | last post by:
Hi All, I am using vtiger open source CRM and in that they are using FCKeditor for Image Upload (Resource browser window) but it is not upload or make new folder for image. Vtiger CRM fource to use IE for better performence so from the first day i was using IE7 for editing and testing. After some time today i tried it with Mozilla browser and Image upload works great in this browser, and sudanly i found that Image upload is not...
0
9736
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10672
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10408
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10428
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4359
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3888
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3030
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.