symfony2admingenerator / AvocodeFormExtensionsBundle

(old-legacy) Symfony2 form extensions for Admingenerator project (also working standalone!)
Other
48 stars 31 forks source link

loadImageFileTypes not working #148

Closed nicoip closed 9 years ago

nicoip commented 9 years ago

Hi,

loadImageFileTypes not working

      images:
        label:            Images
        dbType:           collection
        formType:         afe_collection_upload
        addFormOptions:
            acceptFileTypes:      /(\.|\/)(gif|jpe?g|png)$/i
            loadImageFileTypes:   /^image\/(gif|jpe?g|png)$/i

us

Do you have a solution?

thank you

ioleo commented 9 years ago

@nicoip You've misunderstood the docs. Please read.

This has no affect on your browsers "browse for file" window. This decides wheather or not create a preview image after you selected the file with "browse...".

nicoip commented 9 years ago

Thank you and Sorry...

ioleo commented 9 years ago

@nicoip No problem. I hope you like admingenerator and use it :)

nicoip commented 9 years ago

Yes and Yes :)