Symfony 3 - VichUploader Serving files with a controllerHow do I check whether a file exists without exceptions?How do I copy a file in Python?Undo working copy modifications of one file in Git?Why should text files end with a newline?How do I include a JavaScript file in another JavaScript file?Writing files in Node.jsHow to read a file line-by-line into a list?How do you append to a file in Python?Symfony 2 entity join or doctrine query joinSymfony VichUploaderBundle doesn't upload file neither write to database

Can the card disintegrate destroy creatures with indestructible?

Why is the Digital 0 not 0V in computer systems?

Why is the T-1000 humanoid?

Is there a reliable way to hide/convey a message in vocal expressions (speech, song,...)

Should I leave the first authorship of our paper to the student who did the project whereas I solved it?

Can a corpse possessed by a Dybbuk be turned via Turn Undead?

Why isn't `typename` required for a base class that is a nested type?

Is there any way to land a rover on the Moon without using any thrusters?

Is there an inconsistency about Natasha Romanoff's middle name in the MCU?

How do email clients "send later" without storing a password?

Type leftwards arrow on macOS

What is my breathable atmosphere composed of?

Is English tonal for some words, like "permit"?

Why is Kirchoff's loop rule true in a DC circuit?

Leaving out pronouns in informal conversation

How to say "quirky" in German without sounding derogatory?

Will replacing a fake visa with a different fake visa cause me problems when applying for a legal study permit?

Why island and not light?

What exactly is a marshrutka (маршрутка)?

What is this unknown executable on my boot volume? Is it Malicious?

Does my opponent need to prove his creature has morph?

Can I conceal an antihero's insanity - and should I?

Modify width of first column in file with a variable number of fields, using awk

What is a realistic time needed to get a properly trained army?



Symfony 3 - VichUploader Serving files with a controller


How do I check whether a file exists without exceptions?How do I copy a file in Python?Undo working copy modifications of one file in Git?Why should text files end with a newline?How do I include a JavaScript file in another JavaScript file?Writing files in Node.jsHow to read a file line-by-line into a list?How do you append to a file in Python?Symfony 2 entity join or doctrine query joinSymfony VichUploaderBundle doesn't upload file neither write to database






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I use Symfony 3.4 with PHP 5.6.



I want to use the vichuploader Bundle to download files. I managed to make it work normally. But now I want to be able to use the files directly from the controller to be able to use them in my database. After reading the documentation, I tried to do something.



I have on my index.html.twig the line :



<td><a href=" path('paquet_file', 'id': uneInfo.id) "</a> uneInfo.urlPaquet </td>


On my controller :



namespace SitePagesBundleController;

use SitePagesBundleEntityPaquet;
use SitePagesBundleEntityTypeUser;
use SymfonyComponentHttpFoundationRequest;
use SymfonyBundleFrameworkBundleControllerController;
use SensioBundleFrameworkExtraBundleConfigurationRoute;
use SensioBundleFrameworkExtraBundleConfigurationMethod;
use VichUploaderBundleHandlerDownloadHandler;

//........


/**
* Serves an uploaded file.
*
* @Route("/id/file", name="paquet_file")
*/
public function fileAction(Paquet $paquet)

$downloadHandler = $this->get('vich_uploader.download_handler');

return $downloadHandler->downloadObject($paquet, $fileField = 'paquetFile', Paquet::class, true);



My entity :



<?php

namespace SitePagesBundleEntity;

use DateTimeImmutable;
use DoctrineORMMapping as ORM;
use SitePagesBundleEntityPaquet;
use SitePagesBundleEntityTypeUser;
use SymfonyComponentHttpFoundationFileFile;
use DoctrineCommonCollectionsArrayCollection;
use VichUploaderBundleMappingAnnotation as Vich;
use SymfonyComponentHttpFoundationFileUploadedFile;

/**
* Paquet
*
* @ORMTable(name="paquet")
* @ORMEntity(repositoryClass="SitePagesBundleRepositoryPaquetRepository")
* @VichUploadable
*/
class Paquet

/**
* @var int
*
* @ORMColumn(name="id", type="integer")
* @ORMId
* @ORMGeneratedValue(strategy="AUTO")
*/
private $id;


/**
* @var DoctrineCommonCollectionsCollection
* @ORMManyToMany(targetEntity="TypeUser")
* @ORMJoinTable(name="Packages_des_TypesUser")
* @ORMJoinColumn(nullable=false)
*/
private $typeUser;

public function __construct()

$this->typeUser = new ArrayCollection();


/**
* Get TypeUser
*
* @return SitePagesBundleEntityTypeUser
*/
public function getTypeUser()

return $this->typeUser;


public function deleteTypeFromTypesUser(TypeUser $type)

$this->typeUser->removeElement($type);




/**
* Set typeUser
*
* @param SitePagesBundleEntityTypeUser $typeUser
*
* @return Paquet
*/
public function setTypeUser(SitePagesBundleEntityTypeUser $typeUser)

$this->typeUser = $typeUser;

return $this;



/**
* @var string
*
* @ORMColumn(name="titre", type="string", length=255)
*/
private $titre;

/**
* @var string
*
* @ORMColumn(name="urlPaquet", type="string", length=255)
*/
private $urlPaquet;

/**
* @VichUploadableField(mapping="paquet", fileNameProperty="urlPaquet")
* @var File
*/
private $paquetFile;

/**
* @ORMColumn(type="datetime")
*
* @var DateTime
*/
private $updatedAt;

/**
* @param File


But when I click on the URL file :



Screen - My page



I have this file :



Screen - Downloaded file



Thanks for your help !










share|improve this question






























    0















    I use Symfony 3.4 with PHP 5.6.



    I want to use the vichuploader Bundle to download files. I managed to make it work normally. But now I want to be able to use the files directly from the controller to be able to use them in my database. After reading the documentation, I tried to do something.



    I have on my index.html.twig the line :



    <td><a href=" path('paquet_file', 'id': uneInfo.id) "</a> uneInfo.urlPaquet </td>


    On my controller :



    namespace SitePagesBundleController;

    use SitePagesBundleEntityPaquet;
    use SitePagesBundleEntityTypeUser;
    use SymfonyComponentHttpFoundationRequest;
    use SymfonyBundleFrameworkBundleControllerController;
    use SensioBundleFrameworkExtraBundleConfigurationRoute;
    use SensioBundleFrameworkExtraBundleConfigurationMethod;
    use VichUploaderBundleHandlerDownloadHandler;

    //........


    /**
    * Serves an uploaded file.
    *
    * @Route("/id/file", name="paquet_file")
    */
    public function fileAction(Paquet $paquet)

    $downloadHandler = $this->get('vich_uploader.download_handler');

    return $downloadHandler->downloadObject($paquet, $fileField = 'paquetFile', Paquet::class, true);



    My entity :



    <?php

    namespace SitePagesBundleEntity;

    use DateTimeImmutable;
    use DoctrineORMMapping as ORM;
    use SitePagesBundleEntityPaquet;
    use SitePagesBundleEntityTypeUser;
    use SymfonyComponentHttpFoundationFileFile;
    use DoctrineCommonCollectionsArrayCollection;
    use VichUploaderBundleMappingAnnotation as Vich;
    use SymfonyComponentHttpFoundationFileUploadedFile;

    /**
    * Paquet
    *
    * @ORMTable(name="paquet")
    * @ORMEntity(repositoryClass="SitePagesBundleRepositoryPaquetRepository")
    * @VichUploadable
    */
    class Paquet

    /**
    * @var int
    *
    * @ORMColumn(name="id", type="integer")
    * @ORMId
    * @ORMGeneratedValue(strategy="AUTO")
    */
    private $id;


    /**
    * @var DoctrineCommonCollectionsCollection
    * @ORMManyToMany(targetEntity="TypeUser")
    * @ORMJoinTable(name="Packages_des_TypesUser")
    * @ORMJoinColumn(nullable=false)
    */
    private $typeUser;

    public function __construct()

    $this->typeUser = new ArrayCollection();


    /**
    * Get TypeUser
    *
    * @return SitePagesBundleEntityTypeUser
    */
    public function getTypeUser()

    return $this->typeUser;


    public function deleteTypeFromTypesUser(TypeUser $type)

    $this->typeUser->removeElement($type);




    /**
    * Set typeUser
    *
    * @param SitePagesBundleEntityTypeUser $typeUser
    *
    * @return Paquet
    */
    public function setTypeUser(SitePagesBundleEntityTypeUser $typeUser)

    $this->typeUser = $typeUser;

    return $this;



    /**
    * @var string
    *
    * @ORMColumn(name="titre", type="string", length=255)
    */
    private $titre;

    /**
    * @var string
    *
    * @ORMColumn(name="urlPaquet", type="string", length=255)
    */
    private $urlPaquet;

    /**
    * @VichUploadableField(mapping="paquet", fileNameProperty="urlPaquet")
    * @var File
    */
    private $paquetFile;

    /**
    * @ORMColumn(type="datetime")
    *
    * @var DateTime
    */
    private $updatedAt;

    /**
    * @param File


    But when I click on the URL file :



    Screen - My page



    I have this file :



    Screen - Downloaded file



    Thanks for your help !










    share|improve this question


























      0












      0








      0








      I use Symfony 3.4 with PHP 5.6.



      I want to use the vichuploader Bundle to download files. I managed to make it work normally. But now I want to be able to use the files directly from the controller to be able to use them in my database. After reading the documentation, I tried to do something.



      I have on my index.html.twig the line :



      <td><a href=" path('paquet_file', 'id': uneInfo.id) "</a> uneInfo.urlPaquet </td>


      On my controller :



      namespace SitePagesBundleController;

      use SitePagesBundleEntityPaquet;
      use SitePagesBundleEntityTypeUser;
      use SymfonyComponentHttpFoundationRequest;
      use SymfonyBundleFrameworkBundleControllerController;
      use SensioBundleFrameworkExtraBundleConfigurationRoute;
      use SensioBundleFrameworkExtraBundleConfigurationMethod;
      use VichUploaderBundleHandlerDownloadHandler;

      //........


      /**
      * Serves an uploaded file.
      *
      * @Route("/id/file", name="paquet_file")
      */
      public function fileAction(Paquet $paquet)

      $downloadHandler = $this->get('vich_uploader.download_handler');

      return $downloadHandler->downloadObject($paquet, $fileField = 'paquetFile', Paquet::class, true);



      My entity :



      <?php

      namespace SitePagesBundleEntity;

      use DateTimeImmutable;
      use DoctrineORMMapping as ORM;
      use SitePagesBundleEntityPaquet;
      use SitePagesBundleEntityTypeUser;
      use SymfonyComponentHttpFoundationFileFile;
      use DoctrineCommonCollectionsArrayCollection;
      use VichUploaderBundleMappingAnnotation as Vich;
      use SymfonyComponentHttpFoundationFileUploadedFile;

      /**
      * Paquet
      *
      * @ORMTable(name="paquet")
      * @ORMEntity(repositoryClass="SitePagesBundleRepositoryPaquetRepository")
      * @VichUploadable
      */
      class Paquet

      /**
      * @var int
      *
      * @ORMColumn(name="id", type="integer")
      * @ORMId
      * @ORMGeneratedValue(strategy="AUTO")
      */
      private $id;


      /**
      * @var DoctrineCommonCollectionsCollection
      * @ORMManyToMany(targetEntity="TypeUser")
      * @ORMJoinTable(name="Packages_des_TypesUser")
      * @ORMJoinColumn(nullable=false)
      */
      private $typeUser;

      public function __construct()

      $this->typeUser = new ArrayCollection();


      /**
      * Get TypeUser
      *
      * @return SitePagesBundleEntityTypeUser
      */
      public function getTypeUser()

      return $this->typeUser;


      public function deleteTypeFromTypesUser(TypeUser $type)

      $this->typeUser->removeElement($type);




      /**
      * Set typeUser
      *
      * @param SitePagesBundleEntityTypeUser $typeUser
      *
      * @return Paquet
      */
      public function setTypeUser(SitePagesBundleEntityTypeUser $typeUser)

      $this->typeUser = $typeUser;

      return $this;



      /**
      * @var string
      *
      * @ORMColumn(name="titre", type="string", length=255)
      */
      private $titre;

      /**
      * @var string
      *
      * @ORMColumn(name="urlPaquet", type="string", length=255)
      */
      private $urlPaquet;

      /**
      * @VichUploadableField(mapping="paquet", fileNameProperty="urlPaquet")
      * @var File
      */
      private $paquetFile;

      /**
      * @ORMColumn(type="datetime")
      *
      * @var DateTime
      */
      private $updatedAt;

      /**
      * @param File


      But when I click on the URL file :



      Screen - My page



      I have this file :



      Screen - Downloaded file



      Thanks for your help !










      share|improve this question














      I use Symfony 3.4 with PHP 5.6.



      I want to use the vichuploader Bundle to download files. I managed to make it work normally. But now I want to be able to use the files directly from the controller to be able to use them in my database. After reading the documentation, I tried to do something.



      I have on my index.html.twig the line :



      <td><a href=" path('paquet_file', 'id': uneInfo.id) "</a> uneInfo.urlPaquet </td>


      On my controller :



      namespace SitePagesBundleController;

      use SitePagesBundleEntityPaquet;
      use SitePagesBundleEntityTypeUser;
      use SymfonyComponentHttpFoundationRequest;
      use SymfonyBundleFrameworkBundleControllerController;
      use SensioBundleFrameworkExtraBundleConfigurationRoute;
      use SensioBundleFrameworkExtraBundleConfigurationMethod;
      use VichUploaderBundleHandlerDownloadHandler;

      //........


      /**
      * Serves an uploaded file.
      *
      * @Route("/id/file", name="paquet_file")
      */
      public function fileAction(Paquet $paquet)

      $downloadHandler = $this->get('vich_uploader.download_handler');

      return $downloadHandler->downloadObject($paquet, $fileField = 'paquetFile', Paquet::class, true);



      My entity :



      <?php

      namespace SitePagesBundleEntity;

      use DateTimeImmutable;
      use DoctrineORMMapping as ORM;
      use SitePagesBundleEntityPaquet;
      use SitePagesBundleEntityTypeUser;
      use SymfonyComponentHttpFoundationFileFile;
      use DoctrineCommonCollectionsArrayCollection;
      use VichUploaderBundleMappingAnnotation as Vich;
      use SymfonyComponentHttpFoundationFileUploadedFile;

      /**
      * Paquet
      *
      * @ORMTable(name="paquet")
      * @ORMEntity(repositoryClass="SitePagesBundleRepositoryPaquetRepository")
      * @VichUploadable
      */
      class Paquet

      /**
      * @var int
      *
      * @ORMColumn(name="id", type="integer")
      * @ORMId
      * @ORMGeneratedValue(strategy="AUTO")
      */
      private $id;


      /**
      * @var DoctrineCommonCollectionsCollection
      * @ORMManyToMany(targetEntity="TypeUser")
      * @ORMJoinTable(name="Packages_des_TypesUser")
      * @ORMJoinColumn(nullable=false)
      */
      private $typeUser;

      public function __construct()

      $this->typeUser = new ArrayCollection();


      /**
      * Get TypeUser
      *
      * @return SitePagesBundleEntityTypeUser
      */
      public function getTypeUser()

      return $this->typeUser;


      public function deleteTypeFromTypesUser(TypeUser $type)

      $this->typeUser->removeElement($type);




      /**
      * Set typeUser
      *
      * @param SitePagesBundleEntityTypeUser $typeUser
      *
      * @return Paquet
      */
      public function setTypeUser(SitePagesBundleEntityTypeUser $typeUser)

      $this->typeUser = $typeUser;

      return $this;



      /**
      * @var string
      *
      * @ORMColumn(name="titre", type="string", length=255)
      */
      private $titre;

      /**
      * @var string
      *
      * @ORMColumn(name="urlPaquet", type="string", length=255)
      */
      private $urlPaquet;

      /**
      * @VichUploadableField(mapping="paquet", fileNameProperty="urlPaquet")
      * @var File
      */
      private $paquetFile;

      /**
      * @ORMColumn(type="datetime")
      *
      * @var DateTime
      */
      private $updatedAt;

      /**
      * @param File


      But when I click on the URL file :



      Screen - My page



      I have this file :



      Screen - Downloaded file



      Thanks for your help !







      php file symfony controller






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 9:10









      Agar io FRAgar io FR

      356 bronze badges




      356 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          I don't use this bundle yet (I plan to work with it soon though).
          But from what I see in the doc page : https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/downloads/serving_files_with_a_controller.md the 4th argument is the filename while you set true to it.



          So maybe it's just a filename issue ? You could try to set filename to null (I guess it will take the real filename by default) or set your own filename (with extension) as the 4th argument in the downloadObject() call.






          share|improve this answer

























          • Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

            – Agar io FR
            Mar 28 at 10:28











          • You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

            – Etshy
            Mar 28 at 10:47












          • Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

            – Agar io FR
            Mar 28 at 10:57










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393801%2fsymfony-3-vichuploader-serving-files-with-a-controller%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0
















          I don't use this bundle yet (I plan to work with it soon though).
          But from what I see in the doc page : https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/downloads/serving_files_with_a_controller.md the 4th argument is the filename while you set true to it.



          So maybe it's just a filename issue ? You could try to set filename to null (I guess it will take the real filename by default) or set your own filename (with extension) as the 4th argument in the downloadObject() call.






          share|improve this answer

























          • Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

            – Agar io FR
            Mar 28 at 10:28











          • You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

            – Etshy
            Mar 28 at 10:47












          • Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

            – Agar io FR
            Mar 28 at 10:57















          0
















          I don't use this bundle yet (I plan to work with it soon though).
          But from what I see in the doc page : https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/downloads/serving_files_with_a_controller.md the 4th argument is the filename while you set true to it.



          So maybe it's just a filename issue ? You could try to set filename to null (I guess it will take the real filename by default) or set your own filename (with extension) as the 4th argument in the downloadObject() call.






          share|improve this answer

























          • Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

            – Agar io FR
            Mar 28 at 10:28











          • You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

            – Etshy
            Mar 28 at 10:47












          • Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

            – Agar io FR
            Mar 28 at 10:57













          0














          0










          0









          I don't use this bundle yet (I plan to work with it soon though).
          But from what I see in the doc page : https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/downloads/serving_files_with_a_controller.md the 4th argument is the filename while you set true to it.



          So maybe it's just a filename issue ? You could try to set filename to null (I guess it will take the real filename by default) or set your own filename (with extension) as the 4th argument in the downloadObject() call.






          share|improve this answer













          I don't use this bundle yet (I plan to work with it soon though).
          But from what I see in the doc page : https://github.com/dustin10/VichUploaderBundle/blob/master/Resources/doc/downloads/serving_files_with_a_controller.md the 4th argument is the filename while you set true to it.



          So maybe it's just a filename issue ? You could try to set filename to null (I guess it will take the real filename by default) or set your own filename (with extension) as the 4th argument in the downloadObject() call.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 10:06









          EtshyEtshy

          5562 silver badges16 bronze badges




          5562 silver badges16 bronze badges















          • Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

            – Agar io FR
            Mar 28 at 10:28











          • You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

            – Etshy
            Mar 28 at 10:47












          • Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

            – Agar io FR
            Mar 28 at 10:57

















          • Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

            – Agar io FR
            Mar 28 at 10:28











          • You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

            – Etshy
            Mar 28 at 10:47












          • Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

            – Agar io FR
            Mar 28 at 10:57
















          Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

          – Agar io FR
          Mar 28 at 10:28





          Omg, you are the best ... In theory, by setting it to true, it had to default to the correct file name. I even contacted the creator of the bundle and he himself did not understand and did not know what to do. You are a genius

          – Agar io FR
          Mar 28 at 10:28













          You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

          – Etshy
          Mar 28 at 10:47






          You're welcome. Maybe report to the author the fact that setttng the filename to true cause an issue then, so it could fix it. but, IMHO, it's normal to have an error when the set a wrong argument, it could at least add an error message to inform the parameter is not good.

          – Etshy
          Mar 28 at 10:47














          Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

          – Agar io FR
          Mar 28 at 10:57





          Yes I reported the error. And indeed, it is a pity that he did not take into account this kind of error in view of the reputation of his bundle

          – Agar io FR
          Mar 28 at 10:57








          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.




















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393801%2fsymfony-3-vichuploader-serving-files-with-a-controller%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript