PDA

View Full Version : How add file browser/upload functionality?



simonr26
20 Dec 2011, 6:26 AM
Hello,


I require to add a file browser to my application -
allowing users to browse for files on their local server
and upload files to another server.


Having used the example in the sencha 4 docs, 'Ext.form.field.File',
a browser is displayed - when I use the browser to select a filename
from any path, the path set in the photo textfield is always 'fakepath'.


Please can you let me know the steps required, both on
client and server, to carry out the required functionality.


Ideally we'd like the user, in addition to using the browser, to also
be able to update the field manually.


Kind regards,
Simon

mitchellsimoens
20 Dec 2011, 6:31 AM
The path is not available to the file field so the fakepath will be inserted.