Uploading to FTP

0 views
Skip to first unread message

Patrick Gallagher

unread,
Mar 21, 2002, 3:55:23 PM3/21/02
to
With Netscape 4.xx, you could upload a file to an FTP server by going to
that server in a broser window and dragging files onto the window (not
an effective way to upload an entire website, but perfect for a quick
fix) - in mozilla, dragging a file into the window simply opens the
file. Is this by design?

Patrick

dman84

unread,
Mar 21, 2002, 11:35:20 PM3/21/02
to

it seems to be the case by design. Like if you use Word or something
you drag it to the window to view it.

-dman84

Luke

unread,
Mar 22, 2002, 5:30:11 AM3/22/02
to

Hmmm - I can what you're saying with the Word anaology, but I disagree -
the intuitive drag & drop response when looking at an FTP server would
be to upload, not to open, the file.

--
lu...@strangemonkey.com

Garth Almgren

unread,
Mar 22, 2002, 6:51:11 AM3/22/02
to
Luke wrote:

> dman84 wrote:
>>
>> it seems to be the case by design. Like if you use Word or something
>> you drag it to the window to view it.
>>
>
> Hmmm - I can what you're saying with the Word anaology, but I disagree -
> the intuitive drag & drop response when looking at an FTP server would
> be to upload, not to open, the file.
>

But IMO Moz shouldn't really care about the context of what it's
displaying (to the extent you're thinking of). You just point it to what
you want to display, and it'll display it. It isn't a dedicated FTP
program, after all.

If I drag any kind of file into any viewer (Moz, IE, Notepad, Word,
Media Player, Winamp, Paint, etc.), I expect that viewer to display the
contents of the file if the viewer supports the file's format. I can see
the point if Moz were a dedicated FTP program, but it isn't. It's just a
viewer.

My 0.02. :0)
--
~/Garth

Helge Hielscher

unread,
Mar 22, 2002, 1:13:09 PM3/22/02
to

This is http://bugzilla.mozilla.org/show_bug.cgi?id=24867. This is an
important function for me. Lots of computers at my university, in
internet cafes dont have another ftp client installed. But they always
had a Netscape Navigator around.

Regards,
Helge

grayrest

unread,
Mar 22, 2002, 3:41:25 PM3/22/02
to

If I dragged a file onto what to me as a user appears to be a ftp
program, it should upload, if I drag it onto a browser window, it should
display.

grayrest

Patrick Gallagher

unread,
Mar 22, 2002, 4:03:05 PM3/22/02
to

I think that was one of the nicest "little" features Netscape put into
3.xx & 4.xx - how hard would it be to upload a file when you're logged
into an FTP session, and display it if you're in a regular browsing
session? I'd add it myself, but unfortunately I couldn't program my way
out of a wet paper bag... I remember bits and pieces of Basic, Fortran,
Pascal, and Prolog (there's a (NOT) useful programming language) but I
haven't touched anything like that in 12 years.

10 PRINT "HELP!"
20 GOSUB 10
30 END (I know... with the GOSUB it isn't necessary, but shortcuts
aren't cool ;)

Help!
Help!
HeC^

Patrick

Garth Wallace

unread,
Mar 22, 2002, 6:59:45 PM3/22/02
to
Patrick Gallagher wrote:

> grayrest wrote:
>
> I remember bits and pieces of Basic, Fortran,
> Pascal, and Prolog (there's a (NOT) useful programming language) but I
> haven't touched anything like that in 12 years.
>
> 10 PRINT "HELP!"
> 20 GOSUB 10
> 30 END (I know... with the GOSUB it isn't necessary, but shortcuts
> aren't cool ;)

Shouldn't that be GOTO? I still remember bits of BASIC...

Patrick Gallagher

unread,
Mar 22, 2002, 7:01:42 PM3/22/02
to

goto would work as well...

one was Go To - the other was Go to SUBroutine

*lol* I miss my Vic20

Patrick

Martin Fritsche

unread,
Mar 22, 2002, 7:09:06 PM3/22/02
to
Garth Wallace wrote:
> Patrick Gallagher wrote:

>> 10 PRINT "HELP!"
>> 20 GOSUB 10
>> 30 END (I know... with the GOSUB it isn't necessary, but shortcuts
>> aren't cool ;)

> Shouldn't that be GOTO? I still remember bits of BASIC...

GOSUB is also possible but not very good here.
GOSUB is like a procedure call. It works like GOTO until a RETURN is
found. Then the program jumps back to the position directly after the
GOSUB call.

--
Everyone who sends advertisement to me agrees to pay a fee of 10 Euro.

Garth Wallace

unread,
Mar 22, 2002, 7:18:05 PM3/22/02
to

It's just that I thought GOSUB subroutines were supposed to come after
the END and terminate with a RETURN statement.

> *lol* I miss my Vic20

I miss my dad's old Osbourne. Ah, the days of CP/M and text-based
Snake...he'd done a drawing of a jack-o-lantern in WordStar (using
various non-ASCII symbols found in the character set) and we'd set the
old green monochrome monitor in the window for Halloween.

Bamm Gabriana

unread,
Mar 22, 2002, 8:41:39 PM3/22/02
to
> 10 PRINT "HELP!"
> 20 GOSUB 10
> 30 END (I know... with the GOSUB it isn't necessary, but shortcuts
> aren't cool ;)
>
> Help!
> Help!
> HeC^
>
> Patrick

Shouldn't that be ^C?

QuickBasic translation:

PrintHelp:
PRINT "Help!"
Goto PrintHelp

:)

Bamm Gabriana

unread,
Mar 22, 2002, 8:52:23 PM3/22/02
to
> If I dragged a file onto what to me as a user appears to be a ftp
> program, it should upload, if I drag it onto a browser window, it should
> display.

But if the browser window displays a URL that begins with ftp://
and end with a / (signifying a directory) I would intuitively imagine
I was looking at a remote pane of an FTP window. So like
Patrick, I half-expect to be able to drop a file there to upload
it to that window.

There should be a pref:
Dropping a file into an FTP folder should
( ) Open it
(x) Upload it

If not, at least a user pref.

Bamm

Garth Almgren

unread,
Mar 22, 2002, 9:00:57 PM3/22/02
to

Maybe a popup?

"What do you want to do with this file? [Display] [Upload] [Cancel]"

--
~/Garth

Bamm Gabriana

unread,
Mar 22, 2002, 9:55:47 PM3/22/02
to
> > There should be a pref:
> > Dropping a file into an FTP folder should
> > ( ) Open it
> > (x) Upload it
> >
> > If not, at least a user pref.
> >
> > Bamm
>
> Maybe a popup?
>
> "What do you want to do with this file? [Display] [Upload] [Cancel]"

Maybe both. The popup would be fine the first time, but I should
be able to configure it not to ask me again.

grayrest

unread,
Mar 23, 2002, 1:12:06 AM3/23/02
to

or maybe it should just upload like we all expect....? Why involve
prefs? We have so many as it is. If we do a pref, it should be a pop up
with a "remember this answer" checkbox.

grayrest

Magnus W

unread,
Mar 23, 2002, 7:06:05 AM3/23/02
to
Patrick Gallagher <black...@hotmail.com> wrote in
news:3C9B9C09...@hotmail.com:

> 10 PRINT "HELP!"
> 20 GOSUB 10
> 30 END (I know... with the GOSUB it isn't necessary, but shortcuts
> aren't cool ;)

REPEAT
Write ('HELP!');
UNTIL (1=0);

(GOTO's Considered Harmful! :-)


--
Magnus W
Proud AOLTW-Netscape-Mozilla-China-Communism-Pornstar conspiracy member

michael lefevre

unread,
Mar 23, 2002, 8:32:12 AM3/23/02
to
In article <3C9C1CB6...@yahoo.com>, grayrest wrote:
> Bamm Gabriana wrote:
>>>If I dragged a file onto what to me as a user appears to be a ftp
>>>program, it should upload, if I drag it onto a browser window, it should
>>>display.
>>
>> But if the browser window displays a URL that begins with ftp://
>> and end with a / (signifying a directory) I would intuitively imagine
>> I was looking at a remote pane of an FTP window. So like
>> Patrick, I half-expect to be able to drop a file there to upload
>> it to that window.
>>
>> There should be a pref:
>> Dropping a file into an FTP folder should
>> ( ) Open it
>> (x) Upload it
>>
>> If not, at least a user pref.
>
> or maybe it should just upload like we all expect....?

i don't know who "we" is, but it doesn't include me, and i imagine it
wouldn't include many others. the standard behaviour when you drop
something onto a mozilla window is for it to open in mozilla, not upload
it to the remote site... i quite often drag things onto half hidden
windows to open them - i wouldn't want that to be attempting uploads to
random sites...

--
michael

Bamm Gabriana

unread,
Mar 23, 2002, 9:58:18 AM3/23/02
to
> i don't know who "we" is, but it doesn't include me, and i imagine it
> wouldn't include many others. the standard behaviour when you drop
> something onto a mozilla window is for it to open in mozilla, not upload
> it to the remote site... i quite often drag things onto half hidden
> windows to open them - i wouldn't want that to be attempting uploads to
> random sites...

Not random sites, but only when the protocol is ftp:// and the url ends
in / (signifying an ftp directory) and the pref is set to upload when
dropping to an ftp directory. Surely this will mean it will only upload
when you want it to.

The more important point is that this is the behavior in all previous
versions of NS and IE and i believe opera so if mozilla wants to
have a different behavior it *has* to be a pref.

This is actually standard behavior in any browser, as far as I know.

You will never upload by mistake unless you have an ftp account
and you previously set up the account information in Moz (such as
hostname, username, password) and you open a browser window
specifically to that account and you set the pref to upload.

Regards,
Bamm

Patrick Gallagher

unread,
Mar 24, 2002, 5:34:25 AM3/24/02
to
Martin Fritsche wrote:
> Garth Wallace wrote:
>
>> Patrick Gallagher wrote:
>
>
>>> 10 PRINT "HELP!"
>>> 20 GOSUB 10
>>> 30 END (I know... with the GOSUB it isn't necessary, but shortcuts
>>> aren't cool ;)
>>
>
>> Shouldn't that be GOTO? I still remember bits of BASIC...
>
>
> GOSUB is also possible but not very good here.
> GOSUB is like a procedure call. It works like GOTO until a RETURN is
> found. Then the program jumps back to the position directly after the
> GOSUB call.
>

see... I don't code well in basic... can't imagine what'd happen if I
dug into the moz code! *lol*

my basic code would have worked, just using the wrong command... hehe

Patrick

Patrick Gallagher

unread,
Mar 24, 2002, 5:38:03 AM3/24/02
to

very important for myself as well - thanks for the bug :)

I always have a copy of moz open, whereas I rarely have my FTP client
open. If I only need to upload one file, I log into my server and drop a
file - much quicker than messing with an FTP client. Of course, to do
this now, I have to open Netscape 4.79.

Patrick

Matthew Thomas

unread,
Mar 25, 2002, 4:41:23 AM3/25/02
to
Bamm Gabriana wrote:
>
> > > There should be a pref:
> > > Dropping a file into an FTP folder should
> > > ( ) Open it
> > > (x) Upload it

For such an obscure option, you'd need to prefix it with an explanation.
I suggest the following.
|
| Mozilla's designers can't decide what should happen when a file or
| folder is dragged to a Navigator window where an FTP listing is being
| displayed. We know you're probably not a UI designer, but we'll dump
| the problem on you anyway, because we don't like you.
|
| What should Mozilla do when a file or folder is dragged to a Navigator
| window where an FTP listing is being displayed?
| (*) Open it
| ( ) Upload it
| ( ) Show me a nasty alert box

> > > If not, at least a user pref.

Naturally. It's quite ok to have a UI which is only acceptable to 1
percent of users, if it can be made acceptable to some of the other 99
percent by twiddling prefs which are too well-hidden for any of that 99
percent to know how to change.

>...


> > Maybe a popup?
> >
> > "What do you want to do with this file? [Display] [Upload] [Cancel]"

Alerts don't work. As time goes on the number of alerts used in a
program should decline, not increase.

> Maybe both.

Dilbert: `So should we get lots of bad press by delaying our product for
six months, or lose our future customer base by shipping now when the
product has thousands of bugs?'
PHB: `Hmmmmmm ... Let's do both!'

> The popup would be fine the first time, but I should
> be able to configure it not to ask me again.

Hahahahaha. I could see that coming a mile off.

--
Matthew `mpt' Thomas, Mozilla UI Design component default assignee thing
<http://mpt.phrasewise.com/>


Bamm Gabriana

unread,
Mar 25, 2002, 9:25:10 PM3/25/02
to
>
>
>| Mozilla's designers can't decide what should happen when a file or
>| folder is dragged to a Navigator window where an FTP listing is being
>| displayed. We know you're probably not a UI designer, but we'll dump
>| the problem on you anyway, because we don't like you.
>|
>| What should Mozilla do when a file or folder is dragged to a Navigator
>| window where an FTP listing is being displayed?
>| (*) Open it
>| ( ) Upload it
>| ( ) Show me a nasty alert box
>

Well, they should have stuck with the behavior found in both
Communicator and IE, which is to upload.

If they really want to open it, then /that/ should be a pref.

Reply all
Reply to author
Forward
0 new messages