file input browse pop-up customization in chrome

414 views
Skip to first unread message

krishhna G

unread,
Jun 30, 2016, 1:23:05 AM6/30/16
to Chromium-discuss
Hello,

I am creating this topic to discuss possibilities that is there any way I can customize file input browse file popup
Either by chrome extension or chrome app or in os customization
Eager to integrate some new features in input browse file popup
For example : dropbox, google drive, and other cloud services + screenshot in it

So that is how user will be able to use cloud files directly in browse options
+ user can also attach a snapshot through this without any hassle

PhistucK

unread,
Jun 30, 2016, 2:08:58 AM6/30/16
to gangwa...@gmail.com, Chromium-discuss
​I believe it is not possible, or else I would have seen websites do that. :)
Look at the GMail implementation of the attachment adder (or is it the Google Drive button? I cannot tell at the moment). It opens a web-based dialog that gets stuff from Google Drive, the camera or the computer if I am not mistaken. You can build something like that.​


PhistucK


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
    http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

PhistucK

unread,
Jun 30, 2016, 2:09:36 AM6/30/16
to gangwa...@gmail.com, Chromium-discuss
Sorry, I think I meant the image insertion button.


PhistucK

krishhna G

unread,
Jun 30, 2016, 2:41:15 AM6/30/16
to Chromium-discuss, gangwa...@gmail.com
Thanx for your reply

I haven't seen such thing like that
That is why I am interested in making this

I hope you understood very well what I am trying to achieve

I don't want a custom button in my website
I want this popup to be customized so if user installed my extension
it will work same all over websites. :)

P.S. : Try to post a reply rather than creating new post :)

krishhna G

unread,
Jun 30, 2016, 2:42:34 AM6/30/16
to Chromium-discuss
+1 if you like the idea :D

PhistucK

unread,
Jun 30, 2016, 2:48:13 AM6/30/16
to krishhna G, Chromium-discuss
I have posted a reply, actually. And Google Groups shows my reply as a reply and not as a new topic.

An extension can perhaps use custom elements (<input type=file is="...">) to enhance file inputs, but I do not know enough about them to say.
You will basically have to add is="..." to every <input> on the page using a content script. It might work...


PhistucK

krishhna G

unread,
Jun 30, 2016, 2:57:50 AM6/30/16
to Chromium-discuss, gangwa...@gmail.com
Sorry I misunderstood that you posted new topic, you are right

By content script I can modify elements and can create my custom popup
But I won't be able to customize default popup

content script is my backup plan, if I don't find anything to customize default pop up

Reason why I didn't pick content script is that A lot of websites uses advanced image upload js scripts
which creates file upload box on runtime, it may cause problem in those websites

Really appreciate your inputs.

PhistucK

unread,
Jun 30, 2016, 4:20:23 AM6/30/16
to krishhna G, Chromium-discuss
You might be able to use MutationObserver to act on newly added elements to the DOM. Unless they are creating them on click.

Anyway, Chrome (or any other browser, I think) does not support customizing the <input type=file> dialog itself.


PhistucK
Reply all
Reply to author
Forward
0 new messages