Make WordPress Core

Opened 19 years ago

Closed 17 years ago

#2797 closed defect (bug) (worksforme)

Drag and Drop uploaded file URL breaks in Firefox 1.5.0.4

Reported by: buddyellis's profile buddyellis Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0.2
Component: Administration Keywords: reporter-feedback hunted-sendnext
Focuses: Cc:

Description

If I upload a file using firefox, and attempt to drag and drop it, on a wordpress site that is located at a URL other than the /, for some reason it drops part of the url.

For example, http://somewhere.com/someuser/

For some reason, when you drag and drop a file location from 'uploaded files' into the edit window, the 'someuser' portion of the url gets dropped, leaving you with a url like

'http://somewhere.com/wp-content/uploads/06/01/somefile.txt'

instead of

'http://somewhere.com/someuser/wp-content/uploads/06/01/somefile.txt'

The URL is CORRECT in the uploaded files portion (when you mouse over them, they show the correct URL, etc)

If I upload, then right-click on the url in the uploaded files section, and create a link manually in the editor, it works fine.

The drag and drop of URLs from 'file upload' into the editor window in Internet Explorer works as it should, this seems firefox specific.

Any ideas?

-b

Change History (9)

#1 @mindless
19 years ago

This was created in 2.0.2 release by this enhancement: http://trac.wordpress.org/ticket/2492

I have been editing that one line out of new WP installs for months now. Clearly, 2.0.2 was not merely a security update as advertised. Of the two additional "enhancements", this one does damage. :(

Quick fix, just reverse the 2492 changeset and those wanting more intelligent processing of relative urls will have to get it another way.

Sorry, I'm no expert at patches. Somebody make one?

#2 @mindless
19 years ago

Side note... this seems to only adversely affect wordpress installs inside a subfolder. Many people run wordpress in the root of their public directory, so make sure to test against a subfolder install before marking "worksforme". Completely reproduceable every time.

#3 @foolswisdom
19 years ago

  • Milestone changed from 2.0.3 to 2.1

#4 @matt
18 years ago

  • Milestone changed from 2.1 to 2.2

#5 @foolswisdom
18 years ago

  • Milestone changed from 2.2 to 2.4

#6 @darkdragon
17 years ago

Does this still fail for Firefox 2.x?

#7 @darkdragon
17 years ago

  • Keywords reporter-feedback added

#8 @darkdragon
17 years ago

  • Keywords hunted-sendnext added

#9 @thee17
17 years ago

  • Milestone 2.4 deleted
  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.