Bug 292587 - Active Browser "choose file" doesn't work
Summary: Active Browser "choose file" doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Active
Classification: Plasma
Component: Applications (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR major
Target Milestone: unscheduled
Assignee: active
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-27 13:44 UTC by Sascha Manns
Modified: 2012-03-06 22:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Manns 2012-01-27 13:44:05 UTC
Version:           unspecified (using Devel) 
OS:                Linux

I've tried to upload a picture from the Browser. As example: http://www.directupload.net. There is a button "Choose file" which can't used.

Reproducible: Didn't try

Steps to Reproduce:
Go (Example) to http://www.directupload.net and try to upload a picture.

Actual Results:  
Isn't supported yet

Expected Results:  
Supported

last packages from open-slx repository.
Comment 1 Javier Llorente 2012-01-30 15:54:49 UTC
Verified with http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_input_type_file on 2012-01-30-15-44-basyskom-plasma-active-devel-meego-usb-live.iso
Comment 2 Lamarque V. Souza 2012-03-06 18:55:24 UTC
This problem does not happen with all sites. I can use the "upload" button in www.2shared.com for example. It still does not work for http://www.directupload.net and http://imageshack.us in 2012-02-27-14-08-basyskom-plasma-active-devel-meego-usb-live.iso though.

If you double click the affected button active browser just zooms in, as if the button is just text.

I think the problem happens when the website use the style="" property in <input> tag. www.2shared.com for examplo does not use style.
Comment 3 Lamarque V. Souza 2012-03-06 21:50:01 UTC
Ok, the problem happens because QDeclarativeWebPage::chooseFile is not implemented in plasma-mobile/applications/webbrowser/src/kdeclarativewebview.cpp

Strange that it works with 2shared. Let's try to implement it.
Comment 4 Lamarque V. Souza 2012-03-06 22:22:53 UTC
Git commit 25d73cd410a68a0798d290a7634d0461793aaacf by Lamarque V. Souza.
Committed on 06/03/2012 at 23:17.
Pushed by lvsouza into branch 'master'.

Implement QDeclarativeWebPage::chooseFile() using
KFileDialog::getOpenFileName().

M  +2    -3    applications/webbrowser/src/kdeclarativewebview.cpp

http://commits.kde.org/plasma-mobile/25d73cd410a68a0798d290a7634d0461793aaacf