Questions tagged [doctrine-uploadable]

8 questions
5
votes
1 answer

Symfony2: how to validate UploadedFile without form?

I need to upload download file from URL to my server and persist it with Uploadable (DoctrineExtensions). Almost everything works fine, my approach is: Download file with curl to temp folder on my server Create UploadedFile method and fill it with…
2
votes
0 answers

Error persisting stof doctrine extension uploadble. Symfony 2.3

This is my controller - right from documentation
hazarin
  • 21
  • 2
1
vote
1 answer

Symfony 3 - Stof Doctrine Extension Uploadable : Edit file

I use stof doctrine uploadable on entity. The "add" and "remove/delete" actions in my controller run perfectly. I actualy have a problème to make an edit form for that entity. Here's my code:
1
vote
1 answer

UploadableFilePath field in entity definition is ignored (uploadable doctrine extensions)

Summary My problem is connected with the fact that the entity field marked with @Gedmo\UploadableFilePath annotation is ignored by Symfony3. I am using the Uploadable behavior extension for Doctrine2. CODE In my entity I have: /** * @ORM\Column *…
Abdel5
  • 1,112
  • 3
  • 16
  • 39
1
vote
2 answers

Uplodable stof doctrine extensions - The file "" does not exist

MY PROBLEM I am tying to make stof/StofDoctrineExtensionsBundle work with symfony3. Therefore instead of using $form->bind as listed in example in stof documentation I tried $form->handleRequest. Unluckily after submitting the form I get the…
1
vote
1 answer

Storing relative paths from the Uploadable Doctrine extension

Is there a way of getting the Doctrine Uploadable extension to store a path relative to a directory in the database? We use Capistrano to manage releases on our servers, so when a file is uploaded, the stored path looks like:…
Ross
  • 46,186
  • 39
  • 120
  • 173
0
votes
1 answer

Create form for Uploadable Doctrine Extension

I'd like to use Uploadable to save some images (i.e. profile picture for users). I'm using many other Doctrine Extensions already (softdeletable, timestampable, blameable, etc.) so I thought it would be nice to use this one as well. However, I don't…
Stephan Vierkant
  • 9,674
  • 8
  • 61
  • 97
0
votes
1 answer

DoctrineExtensions Uploadable on entity update doesn't keep current value

I am using Uploadable extension and very happy with that. I have entity with one field as an Uploadable (photo), and another field is annotation for that photo (annotation). When I first create entity I choose the file, and put annotation and…