Search the Community
Showing results for tags 'file field'.
Found 3 results
I can't find anything about this in the forums or anything, but I have a file field that accepts mp3 files. Trying to upload from an Android phone (I've tried from two) the files aren't accepted, it says they must be mp3 files, but they are, so it's not reading the file extensions I guess... The error names the file name without the extension saying it's missing the extension. Has anyone come across this? Thanks.
Hi, sorry to bother you again -- I'll try not to open topics/asking questions daily The following codes does not work properly and I'm wondering why: <?php $download1 = $pages->get(1014)->download1;?> <a href="<?= $download1->url?>"> <img src="<?php echo $config->urls->templates?>images/pdf.png" /> </a> Ressource 1014 has the field "download1" filled with a dummy pdf, and the URL is printed. But nothing more, ->file, ->filename, ->name, ->ext and so on are empty although the file (dummy_1.pdf) can "physically" be found in /site/assets/files/1014/ Have I missunderstood the Cheat sheet/API in some way? Thanks again! marcus Edit: this code is placed in another template, therefore the $pages->get(1014) instead of $page->download1
Greetings, I wonder if someone can help me with this issue. I am trying to use a file uploaded via backoffice in a template file but with no success. I am using the same sintax as images, but it seems it doesn't work: $image = $page->images->getRandom(); // this works $file = $page->files->getRandom(); // this doesn't I've tried pop(), first() and other functions but I believe I must be missing something. Thanks for everything.