Search

We’re on the same wavelengths then, I’ve tried the reflection field, it is an awesome field to use, unfortunately, it doesn’t populate with a value using the mass uploader, which means an open and save of all the uploaded files… Which is what my client wants to avoid (1000s of piccies!).

I had the same thought of

regexp:{$filename}.jpg$

I’m going to have to use that method I think and set some rules for my clients filenames (i.e. ‘-’ not ‘_’) although I have bad experiences with previous clients when it comes to setting rules lol.

Thanks very much for everyones help here!

how about filtering entries with no files (empty file upload).

i tried with

sql: NOT NULL

without any luck

@designermonkey, after 4 years i imagine you found a workaround, I had the same issue, and perhaps found an acceptable solution.

Add a "reflection field" in the same section of your "unique file upload" field. Use the expression {entry/uniquefileuploadnameofthefield/filename} to have the real name of the file with hash ( and without the clean name added in the reflection field).

Use the reflection field as the parameter.

Sorry i reread and see you reflection field wasn't the solution...

@cotiunix, perhaps you can try the same workaround: use reflection field to duplicate the name of the fileuplad and check if empty.

i used this regex on the file upload field in the DS filtering pane:

regexp:^.+$

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details