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

ftp upload with mac browser using asp.net

psb
I have a file upload Web page using
System.Web.UI.HtmlControls.HtmlInputFile. 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 1503
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.com> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
I have a file upload Web page using
System.Web.UI.HtmlControls.HtmlInputFile. 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.PostedFile.FileName
sFile = GetFileNameWithoutPath()
dim sFullPath as string = "c:\tmp\" & sFile
txtUpload.PostedFile.SaveAs(sFullPath)

thanks,
Paul


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ec**************@TK2MSFTNGP11.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.com> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
I have a file upload Web page using
System.Web.UI.HtmlControls.HtmlInputFile. 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 = GetFileNameWithoutPath()
dim sFullPath as string = "c:\tmp\" & sFile

What does this "GetFileNameWithoutPath()" 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.com> wrote in message
news:#o**************@tk2msftngp13.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.PostedFile.FileName
sFile = GetFileNameWithoutPath()
dim sFullPath as string = "c:\tmp\" & sFile
txtUpload.PostedFile.SaveAs(sFullPath)

thanks,
Paul


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ec**************@TK2MSFTNGP11.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.com> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
I have a file upload Web page using
System.Web.UI.HtmlControls.HtmlInputFile. 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. GetFileNameWithoutPath() 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(sSplit))

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******@takempis.com> wrote in message
news:OU****************@tk2msftngp13.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 = GetFileNameWithoutPath()
dim sFullPath as string = "c:\tmp\" & sFile

What does this "GetFileNameWithoutPath()" 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.com> wrote in message
news:#o**************@tk2msftngp13.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.PostedFile.FileName
sFile = GetFileNameWithoutPath()
dim sFullPath as string = "c:\tmp\" & sFile
txtUpload.PostedFile.SaveAs(sFullPath)

thanks,
Paul


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ec**************@TK2MSFTNGP11.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.com> wrote in message
news:uI**************@tk2msftngp13.phx.gbl...
> I have a file upload Web page using
> System.Web.UI.HtmlControls.HtmlInputFile. 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
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...
2
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...
7
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"...
2
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...
2
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...
3
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...
6
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...
21
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...
18
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."? ...
1
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...
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: 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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.