Questions tagged [vichuploaderbundle]

A simple Symfony2 bundle to ease file uploads with ORM entities, MongoDB ODM documents, PHPCR ODM documents or Propel models.

The VichUploaderBundle is a bundle that attempts to ease file uploads that are attached to ORM entities, MongoDB ODM documents, PHPCR ODM documents or Propel models.

  • Automatically name and save a file to a configured directory
  • Inject the file back into the entity or document when it is loaded from the datastore as an instance of Symfony\Component\HttpFoundation\File\File
  • Delete the file from the file system upon removal of the entity or document from the datastore
  • Templating helpers to generate public URLs to the file

All of this functionality is fully configurable to allow for app-specific customization

If your question matches problems described in the bulletlist below then use this tag.

Project page

253 questions
3
votes
1 answer

How to configure VichUploader in entity mapped by yml?

I have a entity called 'Magazine', mapped from yml file: Acme\DemoBundle\Entity\Magazine: type: entity table: magazine id: id: type: integer generator: { strategy: AUTO } fields: edition: type: string …
cbacelar
  • 545
  • 7
  • 20
3
votes
2 answers

Update form vich uploader, cannot delete or edit file

I can't delete or edit my uploaded image with VichUploaderBundle. I have an Annonce and Photo entities with OneToMany (bidirectionnal relation). I try with an attribute setUpdatedAt to call vich prePersist but he doesn't work. Here is Annonce :…
Kev
  • 171
  • 2
  • 19
3
votes
2 answers

Symfony 2: How do I manually assign a file to an entity which has been configured to use VichUploaderBundle to handle file uploads

I have set up the VichUploaderBundle to facilitate the upload of a profile image for my User entity. I am using the GaufretteStorage option, configured to use the local filesystem and all is working fine when users upload an image via a form. I now…
Nada_Surf
  • 616
  • 1
  • 7
  • 19
2
votes
2 answers

Symfony 4: Re-install VichUploaderBundle?

I have installed VichUploaderBundle with command composer require vich/uploader-bundle but I forgot enter yes like the above image (default is no). And I see any VichUploaderBundle package in my app. How can I relaunch it without reinstall it?
2
votes
0 answers

LiipImagineBundle + KNPGaufrette + VichUploaderBundle + Amazon S3 can't generate thumbnails on S3

When trying to use LiipImagineBundle + VichUploaderBundle and Amazon S3, I'm encountering a weird issue. When I upload a file via my Symfony form (using the VichFileType form field), the file is successfully created on Amazon S3 (via Gaufrette).…
2
votes
1 answer

VichUploaderBundle - PropertyAccessor requires a graph of objects or arrays to operate on, but it found type "NULL"

i try to make this bundle running with Form. First this is my entity
2
votes
0 answers

Is it possible to integrate VichUploader in CKEditor?

I belive that i need some filebrowser for my application for using image button in CKEditor. I have already install VichUploaderBundle for other thing. I know that FMElfinderBundle works perfect with CKEditor but maybe I don't need it if I have…
Eddy
  • 593
  • 8
  • 22
2
votes
2 answers

VichUploaderBundle and form to multi-image upload

I'm using VichUploaderBundle in Symfony 4 and I have a question about using a form to send in a bunch of photos. To do this I have to use CollectionType and a one-to-many relationship (One product has several photos). Below I present the code which…
jonadf
  • 31
  • 3
2
votes
2 answers

"Multiple Upload" with VichUploaderBundle on Symfony 3

I try to allowed the multiple upload with the bundle VichUploader. On the project, i have a class Theater which own a main image but also a number of secondary images (Collection of images). Actually each secondary images is a Ressource. So a…
2
votes
1 answer

VichUploader: Update of Image not working

I have four pictures on my homepage banner and I'd like to be able to update them every now and then using a Symfony form. I set up an Image Entity exactly as described in the Vich Uploader documentation (with updated At-Entity and everything) …
sonja
  • 924
  • 1
  • 21
  • 52
2
votes
1 answer

Upload file manually with VichUploaderBundle

I'm trying to upload a file with VichUploaderBundle manually My entity BookingOrder is linked to an user, got some other fields and have a vichUpload field. BookingOrder Entity:
LedZelkin
  • 586
  • 1
  • 10
  • 24
2
votes
1 answer

Vich UploadedFile, FOSUserBundle and Events

I added a VichImageType field on edit profile twig template...so im trying to check image dimensions using vich_uploader.pre_upload as Event. In my class i got the image properties and if their dimensions arent bigger enough i tried to stop…
2
votes
2 answers

upload files not working - vich_uploader

I'm trying to make uploads of file with vich_upload, but I do not understand why the image is not updated: / The form returns no errors, yet the image is not saved. I do not understand why, while it does not return me any error.. Can I be told…
Lilith
  • 165
  • 1
  • 15
2
votes
1 answer

the image doesn't appeare on the web page

i use vich uploader bundle to display images added to my data base here is my code config.yml : vich_uploader: db_driver: orm mappings: cours_image: uri_prefix: /images/cours …
2
votes
1 answer

Symfony vichUploader tmp file does not exist

The error is the following: The file "C:\xampp\tmp\php5B9.tmp" does not exist 500 Internal Server Error - FileNotFoundException Stack Trace in vendor\symfony\symfony\src\Symfony\Component\HttpFoundation\File\File.php at line 37 I use…
draco
  • 21
  • 3
1 2
3
16 17