demo icon indicating copy to clipboard operation
demo copied to clipboard

Image upload and web fonts

Open pculka opened this issue 7 years ago • 10 comments

Can you please extend your demo to include common items, like for example:

  • images
  • custom fonts

Thank you

pculka avatar Jan 05 '18 22:01 pculka

Would be to cool to add.

Nenglish7 avatar Jan 19 '18 06:01 Nenglish7

youle

liudianpeng avatar Jan 19 '18 06:01 liudianpeng

While images look reasonable for me, I'm against web fonts. Really, there's nothing related to Symfony except using asset() Twig function to build proper paths. What about asset() function itself - we already have examples of it for JS/CSS files

bocharsky-bw avatar Jan 19 '18 08:01 bocharsky-bw

Handling uploads sounds very useful to include in symfony/demo. What would You recommend ?

  • Handling uploads as described in the docs - https://symfony.com/doc/current/controller/upload_file.html or
  • using VichUploaderBundle since it's suggested by Symfony docs.

phpeek avatar Jan 20 '18 22:01 phpeek

As always, it depends on your use cases. If there's a bundle that fits your needs - use it as it's a ready-to-use solution, make even more sense if it's a popular, well-tested, and maintained bundle.

bocharsky-bw avatar Jan 21 '18 10:01 bocharsky-bw

Actually I meant using assets in templates and stylesheets while using webpack encore. Not uploading files... And as far as custom fonts go: there are many usecases, one of which is corporate design which might have been historically supplied as a webfont. Switching to svg might be a bit off. Being against including handling of fonts in a demo is a bit awkward...

pculka avatar Jan 21 '18 10:01 pculka

It would be great to see the right way to handle multiple file (image) uploads. 👍

kironet avatar Mar 21 '18 11:03 kironet

@pculka What do you mean by custom fonts feature ?

sundowndev avatar May 10 '18 16:05 sundowndev

@SundownDEV : like when I create my own webfont .eot, .woff, .ttf ...

pculka avatar May 13 '18 17:05 pculka

Handling uploads sounds very useful to include in symfony/demo. What would You recommend ?

  • Handling uploads as described in the docs - https://symfony.com/doc/current/controller/upload_file.html or
  • using VichUploaderBundle since it's suggested by Symfony docs.

I just use VichUploaderBundle...

manzwebdesigns avatar Jul 27 '19 00:07 manzwebdesigns