unless I missed something on this thread,
you can use the html upload also that is what I use.
you have a field and a button.
<form name="ImportSupplierInventory"method="post" enctype="multipart/form-data" action="<@ofbizUrl>ImportSupplierInventoryxls</@ofbizUrl>" style="margin: 0;">
          <tr>
            <td colspan="5" align="center">
<input type="file" name="ImportSupplierInventoryFile" size="14" value="Productsimports.xls" class="inputBox"/> <input type="submit" value="${uiLabelMap.CommonUpload} supplierinventory.xls" class="smallSubmit"/> <div class="tabletext">${uiLabelMap.ImportSupplierInventory1}</span>
            </td>
          </tr>
        </form>


Jacques Le Roux wrote:
I was presumptuous. This does depend of the browser.

FF3 : show an input field with a button, clicking in field is the same as clicking the button IE7 and Opera 9.02 : show an input field with a button, clicking in field does nothing and anyway both do not keep an history of selected files so it's useless. Chrome and Safari (hey, it works on Windows too now) : show only a button, and an information on the selected file name at right

So far the best impementations seems to be Chrome and Safari

I found this (I used to test) http://www.quirksmode.org/dom/inputfile.html
And I gave up...

Actually, my memory misleaded me. I was remembering how works "Working with data files" in Webtools. It's another way of dealing with file upload. I guess in the Adress Match Map case it's ok how it's done now.

Jacques

From: "Jacques Le Roux" <[EMAIL PROTECTED]>
Thanks Bilgin,

I will change that

Jacques

From: "Bilgin Ibryam" <[EMAIL PROTECTED]>
On Tue, 2008-09-30 at 15:17 +0200, Jacques Le Roux wrote:
BTW I don't like much the way javascript is used there : when you clic
in the file name field it automatically opens the file search dialog box.

Me neither.
Bilgin





Reply via email to