How upload file to server in module?

Discuss about Group-Office development here

Moderator: Developers

MavisS2
Posts: 11
Joined: Thu Sep 12, 2013 12:17 pm

How upload file to server in module?

Postby MavisS2 » Tue Jan 07, 2014 12:39 pm

Hi,

I must upload pdf file from form in my module to server and write path to file in database.

I find some code to generate file input:

Code: Select all

{
                                xtype: 'fileuploadfield',
                                id: 'filedata',
                                emptyText: 'Wybierz plik...',
                                fieldLabel: 'Załącznik',
                                buttonText: 'Dodaj'
                            }
but, a i can't service this in controller. Somebody can tell me how do this?
mschering
Site Admin
Site Admin
Posts: 8333
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: How upload file to server in module?

Postby mschering » Tue Jan 07, 2014 1:41 pm

you need to add fileUpload: true to the extjs formpanel.
Best regards,

Merijn Schering
Intermesh

Who is online

Users browsing this forum: No registered users and 1 guest

cron