Questions tagged [gaufrette]

PHP5 library that provides a filesystem abstraction layer

Mark Question with this tag if you have trouble employing the filesystem abstraction layer.

It permits development of an application without the need to know were all those medias will be stored and how.

Another advantage of this is the possibility to update the files location without any impact on the code apart from the definition of your filesystem.

Taken from the projec page

52 questions
2
votes
1 answer

Symfony2 + AmazonS3 + KnpGaufretteBundle how to set key & secrete from DB

I want to set Amazon S3 settings from database and not from parameters.yml can someone point me to right direction on how to use database (doctrine) parameters before symfony2 calls services. #app/config/config.yml services: …
Basit
  • 16,316
  • 31
  • 93
  • 154
2
votes
1 answer

Symfony2: Use LiipImagineBundle with KnpGaufretteBundle and Amazon S3 in Twig template

I can't get LiipImagineBundle to recognize stream paths. Instead of loading the image and applying the specified filter set, it just takes the stream path and treats it as if it were a normal web path. This is the configuration that I was able to…
tvanc
  • 3,807
  • 3
  • 25
  • 40
2
votes
1 answer

Display images uploaded on amazon S3 with symfony2

Which is the best practice to show images from a remote amazon s3 repos on a symfony2 project? I used KnpGaufretteBundle to upload the images on Amazon.
2
votes
1 answer

how to use Gaufrette Stream Wrappers?

If i have defined as below a stream wrapper in my symfony2 config.yml: knp_gaufrette: adapters: my_drive: local: directory: %my_drive_path% create: true filesystems: user_fs: …
vardius
  • 6,326
  • 8
  • 52
  • 97
2
votes
3 answers

Symfony2 Gaufrette How to create directory?

the question is how can i create new folder in my filesystem ? I know how to add file, but how to create an empty folder in specified path ?
vardius
  • 6,326
  • 8
  • 52
  • 97
2
votes
0 answers

VichUploaderBundle and Gaufrette

I tried to install VichUploaderBundle with Gaufrette but i had error: The specified path (gaufrette://users_avatars_fs) is invalid. composer.json "require": { ... "vich/uploader-bundle": "dev-master", "knplabs/gaufrette": "0.2.*@dev", …
Adam Waz
  • 21
  • 2
1
vote
0 answers

liip_imagine url error (bucket name in url)

I am currently having a problem with the image display on my symfony 5 project. The problem encountered is that I am getting a bad url for getting my images with liip_imagine. The name of the bucket is placed in the url of an image and prevents me…
1
vote
1 answer

Gaufrette (with AWS) & Symfony 4 - Read a picture

Good afternoon, I try to display an image from AWS S3 storage. I use the gaufrette file configuration which works when I upload file in AWS S3 storage. Gaufrette configuration: knp_gaufrette: adapters: images: aws_s3: …
nboulfroy
  • 201
  • 3
  • 14
1
vote
0 answers

Upload file with VichUploader and ajax/axios

I am trying to set up a form to upload a file with VichUploader & axios/ajax. The form I am sending looks like this on the console: I have set up vich uploader and GNP properly as the form works in non-ajax forms. I have a simple file to upload…
Miles M.
  • 4,089
  • 12
  • 62
  • 108
1
vote
1 answer

VichUploaderBundle an Gaufrette

"vich/uploader-bundle": "^1.4.2" and "knplabs/knp-gaufrette-bundle": "0.5" Symfony 3 my config: vich_uploader: db_driver: orm storage: gaufrette mappings: customer_logo: uri_prefix: /upload/customer_logos …
Moccine
  • 1,021
  • 6
  • 14
1
vote
1 answer

Vich and gaufrette are not saving files in sonata admin

I'm trying to make an upload linked to an entity in Sonata Admin using Vich. All the configuration is done but the file does not upload, and I cannot find the error. The problem is that when y try to upload the file, every thing seem to work fine,…
Krleza
  • 87
  • 12
1
vote
1 answer

Gaufrette use Service Adapter

I use KnpGaufrette Bundle and I'd like to use the service adapter.# https://github.com/KnpLabs/KnpGaufretteBundle/blob/master/Resources/docs/adapters/service.md app/config/config.yml knp_gaufrette: adapters: foo: service: …
user1560634
  • 271
  • 1
  • 3
  • 3
1
vote
1 answer

Configure S3 | Gaufrette | Sylius?

I want to integrate AWS S3 into Sylius. What is the correct way to configure it? In dnd you will find the configuration file of Sylius and Gaufrette inside the package?
1
vote
0 answers

Streaming files from AWS S3 with a BinaryFileResponse is really slow

I'm working on a Symfony2.8 project, and using Gaufrette to manage files I have stored in an AWS S3 bucket. My files need to be private, so instead of using S3 public URLs, I am trying to stream the files from S3 to my end user. I have it working…
Hayden Schiff
  • 3,280
  • 19
  • 41
1
vote
1 answer

Uploading files from my app to Softlayer's Object Storage using Gaufrette

I'm building a web application that allows to upload many types of files, some of them very big. Backend is built using Symfony (v3.1 in fact, but I don't think this matters for the issue) and I am using Gaufrette Bundle to interact with the…
MarcSitges
  • 282
  • 3
  • 11