Loading

File upload not working in Firefox 3.5

Get help with problems, or report & discuss bugs in Collabtive

File upload not working in Firefox 3.5

Postby JohnM » 13.04.2011, 19:29

I just noticed that the file upload dialogue is not triggered in Firefox. Not problems in IE (7).

Let me rephrase: clicking the button does not trigger the upload dialogue. Clicking the text field does. Still a flaw though.

John
JohnM
 
Posts: 14
Joined: 08.04.2011, 09:23

Re: File upload not working in Firefox 3.5

Postby some person » 20.04.2011, 03:24

The reason this happens is because of this

Image

The file input element is overlaid on top, as you can not style this element directly, you have to use workarounds like this.
But the problem is it does not cover the whole "Please choose" button, making the button only functional half way.

Simple fix is to make the file input element overlay the whole "Please choose" button.

So here is a fix.

Add to style_form.css under "form.main input.file" (line 316).
Code: Select all
font-size: 21px;
width: 315px;

and change position to absolute.

In addfileform.tpl, change the file input element size to 19, found on line 37. This is how it should look.
Code: Select all
<input type="file" class="file" name="userfile1" id="filer"  realname="{#file#}" size="19" onchange = "file.value = this.value;" />
Have any Bitcoins (http://weusecoins.com) found my post helpful, you can send a tip to the following bitcoin address found on http://btc.to/a9n.
some person
 
Posts: 363
Joined: 16.04.2011, 12:46

Re: File upload not working in Firefox 3.5

Postby some person » 20.04.2011, 21:00

Actually, that fix causes some problems, so here is a better one

Code: Select all
font-size: 21px;
width: 312px;

Position stays relative.

Size of the input field is as above, 19.

Also, you will have to go in and find all the pages that contain the file input field, and change the size to 19.
This includes: addfileform.tpl, addmessageform.tpl, addmymessage.tpl, editsettings.tpl, edituseradminform.tpl, edituserform.tpl, install2.tpl, replyform.tpl.
Have any Bitcoins (http://weusecoins.com) found my post helpful, you can send a tip to the following bitcoin address found on http://btc.to/a9n.
some person
 
Posts: 363
Joined: 16.04.2011, 12:46

Re: File upload not working in Firefox 3.5

Postby Eva » 29.04.2011, 00:14

Thanks for this. :)
User avatar
Eva
 
Posts: 833
Joined: 01.01.2008, 23:31
Location: Saarbrücken, Germany


Return to Problems and Bugs

Who is online

Users browsing this forum: No registered users