https://bugzilla.wikimedia.org/show_bug.cgi?id=30034

--- Comment #1 from [email protected] 2011-07-24 04:23:26 UTC ---
One of the workarounds I've just tried is using default filename=<page name>. I
can hide the form input and choose a name automatically, so all the user sees
is an "upload here" button. 

Then, they see a place to upload their file, which already has the the new
(random) name filled out for them. The random name is also the name of the page
the form is supposed to edit, but with File: tacked on the front of it. I
haven't gotten this to work yet, but even if it does, I've already noticed a
problem that will make it fail: 

default filename=<page name> does not include the file's extension! 

I'm going to fiddle around with it some more to see if it would work if an
extension were included. If it does, then maybe that will be a quick and dirty
way to get this working, by modifying the code that deals with <page name> to
also grab the file's filename. 

I'm not sure if it can get the file name, but this seems like an easy solution
if it can.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to