1. #1
    Sencha Premium Member
    Join Date
    Dec 2009
    Location
    Iasi, Romania
    Posts
    89
    Vote Rating
    14
    ateodorescu will become famous soon enough

      0  

    Default Ext.ux.form.field.UploadFileField and Ext.ux.form.field.ImageFileField

    Ext.ux.form.field.UploadFileField and Ext.ux.form.field.ImageFileField


    Hi there!

    Ext.ux.form.field.UploadFileField:
    You probably encountered the same problems like I did with the file upload field. You have a form with a file upload field, you can upload the file but if you want to remove it from the server you need workarounds. So, I did a small enhancement to the file upload field to be able to specify if I want to delete the file or not. It's a simple toggle button. If this is pressed then the file field is acting like a textfield sending to the form the value "delete" which you can catch on the server and remove the file.

    Ext.ux.form.field.ImageFileField:
    This component extends the previous component adding a "preview" button useful when you upload images. When you have a form with an already existing record you could preview the image quite easy.

    Hope you find them useful.

    Cheers,
    Adrian

    Update: The project is on Github now: https://github.com/ateodorescu/mzExt

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,075
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Thank you for the contribution.

    Regards,
    Scott

  3. #3
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    8
    andong is on a distinguished road

      0  

    Default Great!

    Great!


    Are there any demos or pictures?

  4. #4
    Sencha Premium Member
    Join Date
    Dec 2009
    Location
    Iasi, Romania
    Posts
    89
    Vote Rating
    14
    ateodorescu will become famous soon enough

      0  

    Default


    Quote Originally Posted by andong View Post
    Are there any demos or pictures?
    Yes, there are here: http://www.mzsolutions.eu/extjs/#!/e...oad/index.html , http://www.mzsolutions.eu/extjs/#!/e...ile/index.html
    You can't upload files but you can test the behavior.

  5. #5
    Sencha User
    Join Date
    Mar 2008
    Posts
    55
    Vote Rating
    8
    andong is on a distinguished road

      0  

    Default


    Quote Originally Posted by ateodorescu View Post
    Yes, there are here: http://www.mzsolutions.eu/extjs/#!/e...oad/index.html , http://www.mzsolutions.eu/extjs/#!/e...ile/index.html
    You can't upload files but you can test the behavior.
    It's great.

  6. #6
    Sencha Premium Member
    Join Date
    Dec 2009
    Location
    Iasi, Romania
    Posts
    89
    Vote Rating
    14
    ateodorescu will become famous soon enough

      0  

    Default


    This project is on Github now https://github.com/ateodorescu/mzExt

  7. #7
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    446
    Vote Rating
    4
    Jangla is on a distinguished road

      0  

    Default


    We've experienced a bug with this code. If you use the codemirror component on a tab panel in a window where the component is on, say, the third tab and the user switches between tabs 1, 3, 1 and back to 3, the whole layout breaks down and an error is thrown.

    Seems to stem from publishInnerWidth method. As yet I can't find a solution to this so any help appreciated.