Datasource filter with File Upload Field
This is an open discussion with 24 replies, filed under General.
Search
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.
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
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!