Hi, I have a question related to the Form component and file upload. The current implementation only returns the path to the temporary file. The other information e.g. mime type and original name is lost, when the data is bound to an object. The current experimental version seems to allow two approaches, either store the information as string or as an array in the final object (where the original File object is stored in the array), but to me it is not clear whether mime type and original name is available from that array, especially when the form encountered validation errors.
While the mime type could be again checked there is no way to get the original name. But I can imagine use cases where you would like to store that information. Additionally if you want to store the file e.g. in the PHPCR content repository you can not simply use the code for mime guessing again, you probably would copy it ... I would love to have this information set on my domain object either as an object or as an array so that it can be easily used where it is needed. If I miss something here I would love to learn how it can already be done! Kind regards Uwe -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en
