Last modified: 2007-01-09 02:25:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10548, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8548 - Upload directory structure.
Upload directory structure.
Status: RESOLVED DUPLICATE of bug 3336
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.9.x
PC Linux
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-09 02:18 UTC by Luis Zarrabeitia
Modified: 2007-01-09 02:25 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Preserves the directory structure of uploaded files (4.40 KB, patch)
2007-01-09 02:24 UTC, Luis Zarrabeitia
Details

Description Luis Zarrabeitia 2007-01-09 02:18:06 UTC
This may be considered a duplicate of request 3336, "use directory structure for
file uploads" (closed as "wontfix" on 2005-09-06). I'm posting it as a new one
because I don't know if it is acceptable to reopen a closed bug.

I'm interested on having the ability of uploading files to different
subdirectories (preserve the directory structure), i.e, to be able to upload
[[Image:/dir1/image.png]] and [[Image:/dir2/image.png]]. The current behavior is
that the image gets uploaded as Image.png, and none of those links work. My
proposal is to create the directories as needed, so they'll both work and point
to different images.

Advantage: on some situations, there is conflict with the filenames. For
instance, on my university, two professors cannot upload a
[[Media:Conference1.pdf]]. This proposal would allow them to upload a
[[Media:class1/Conference1.pdf]] and [[Media:class2/Conference1.pdf]] and solve
the conflict.

Disadvantages: I don't know - yet.

I wrote a patch that implements this. I hope I can attach it to this thread
after I submit it. Please look at the commented section that asks "Why is this
here?". I couldn't figure out if it was required because of security concerns.
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-01-09 02:20:14 UTC
Generally you should make your arguments in the closed bug and let the devs decide whether to reopen.  If 
you really want to you can reopen it yourself, but don't be surprised if it's reclosed quite quickly.

*** This bug has been marked as a duplicate of 3336 ***
Comment 2 Brion Vibber 2007-01-09 02:21:16 UTC
Note that you can simply name them 'Class1 - Conference1.pdf' etc.
Comment 3 Luis Zarrabeitia 2007-01-09 02:24:04 UTC
Created attachment 3036 [details]
Preserves the directory structure of uploaded files

It applies against mediawiki 1.6 and 1.9 (svn). Please check the commented
section with the notice "Why is this here?" as I didn't manage to find out the
answer. This patch is the only reason why I reposted a "wontfix".
Comment 4 Luis Zarrabeitia 2007-01-09 02:25:12 UTC
Oops, sorry. That was quick.
I'll post it back there, then.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links