# Media field and the Web

**URL:** <https://forum.servoy.com/t/media-field-and-the-web/8769>\
**Category:** Classic Servoy\
**Created:** [February 20, 2008, 3:14pm UTC](https://forum.servoy.com/t/media-field-and-the-web/8769 "2008-02-20T15:14:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![irenem](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@irenem](https://forum.servoy.com/u/irenem)\
**Post date:** [February 20, 2008, 3:14pm UTC](https://forum.servoy.com/t/media-field-and-the-web/8769/1 "2008-02-20T15:14:59Z")

</div>

I have a method that works great with the client, but not on the web.

```auto
var theFile = plugins.file.showFileOpenDialog();
var rawData = plugins.file.readFile(theFile);
var name = theFile.getName();
forms.action_list_comp.controller.newRecord()
forms.action_list_comp.act_type = '3'
forms.action_list_comp.act_document = rawData
forms.action_list_comp.act_name = name;

```

It makes a new record, loads a document an put the name of that document in a textfield.

Is there a way to do the same with a web browser?

The mediafield shows up- and download icons on the web, but there is no way to expand their script (at least I couldn’t find any).

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [March 10, 2008, 10:32am UTC](https://forum.servoy.com/t/media-field-and-the-web/8769/2 "2008-03-10T10:32:44Z")

</div>

this is not supported yet  
You have to use a media field for this
