Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File upload handling with doctrine #2278

Closed
groucho-zz opened this issue Mar 6, 2013 · 1 comment
Closed

File upload handling with doctrine #2278

groucho-zz opened this issue Mar 6, 2013 · 1 comment

Comments

@groucho-zz
Copy link

Currently, to facilitate the file upload :

  • add $file attribute to entity Assert as file
  • add $path attribute to entity which stores the actual filename
    as advised
  • use lifecyclecallbacks to automate file upload handling.
    and since the callbacks do not work if only file is changed
  • add an updated field that is manually changed to make everything work.

All these amounts to 3 new attributes to facilitate the updating of
one field, which overall does not make practical sense.

Is there no way to use just one field for file handling
and by itself trigger the callbacks when it is changed ?

@wouterj
Copy link
Member

wouterj commented Jun 5, 2013

closing this one in favor of #2346
Thank you for reporting it, it's linked from the other issue so we don't forget this issue

@wouterj wouterj closed this as completed Jun 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants