plugins.file.showFileOpenDialog displays strange label

plugins.file.showFileOpenDialog displays a strange ‘Upload form’ label in the webclient.
Is there a reason why it is there? In my opinion this label can be deleted from the dialog, because the user does not know what it means.
Someting else is that the ‘File’ label is not translated into the correct language, while the buttons show the correct labels.

The “Browse…” button is part of the tag.

The browser is rendering it, and it automatically takes the user’s preferred language, you cannot change it yourself.
There’s no way around it.

ptalbot:
The “Browse…” button is part of the tag.

The browser is rendering it, and it automatically takes the user’s preferred language, you cannot change it yourself.
There’s no way around it.

Hi Patrick,
Thanks for thinking along, but my post does not point to the Browse… button. That one is fine by me (although I’dd like to be able to apply a styleclass to it :wink: ).

i think that is because we have a legend tag:

Upload form

in the code of that upload dialog. I can remove that completely (in 6) if people want that.

jcompagner:
I can remove that completely (in 6) if people want that.

Thanks Johan, please do remove it, because the (end) user probably can’t figure out what a ‘legend tag’ means… :wink:

Maybe a better idea is, to give everything in that window a unique styleclass.

so we can override & tune that inside the servoy_webclient_default.css

Harjo:
Maybe a better idea is, to give everything in that window a unique styleclass.
so we can override & tune that inside the servoy_webclient_default.css

Excellent plan!

btw, for Johan, an upLoad button can be styled, but you need a small javascript for that.
look here: http://htmlcampus.com/style-a-file-brow … -with-css/

Now that we are still dreaming ;-), implementing, a multiple file upload, with progress, without flash, would be nice!

like this: http://valums.com/ajax-upload/

it even does, drag & drop…
try the example at the top.

make a case for this then, problem is that these are multiply html files:

the “main” page:
MediaUploadPage.html (com/servoy/j2db/server/headlessclient)

that holds for single upload this one:

SingleFileUpload.html

or when we want to upload many files at once:

MultiFileUpload.html

so create a case with a patch what should be done then for 6. (if you hurry ofcourse)

I’m not a java programmer, so don’t know how to create a patch, or where to begin…

if you just change the html then you won’t have to touch or see any java code :)

My reply was not for the ajax-upload link but for karel and yours for the existing code that needs to be a bit nicer looking (and style able)

That ajax upload is maybe a bit more complex because where are they uploading it to? (what url)

ah oke, can you point me, where I can find the html-code in the svn?

https://subversion.servoy.com/product/t … dPage.html

https://subversion.servoy.com/product/t … pload.html

https://subversion.servoy.com/product/t … pload.html

In Servoy 6.0 rc3 the text in upload form will come from i18n keys.

jcompagner:
https://subversion.servoy.com/product/trunk/servoy_headless_client/src/com/servoy/j2db/server/headlessclient/MediaUploadPage.html
https://subversion.servoy.com/product/t … pload.html
https://subversion.servoy.com/product/t … pload.html

ivostinar:
In Servoy 6.0 rc3 the text in upload form will come from i18n keys.

Perfect. This solves the whole issue. Thanks Johan and Laurian!