checking file in a extern folder
am 09.01.2008 15:59:44 von Jimmy
Hi,
There are 2 fields :
- Name_of_file : text
- Present (yes/no)
and a folder ZZ which contains some files like
a.pdf, b.jpg , ...........
When I give a name in Name_of_file, Present must
show if the file existe (yes) or not (no) in the folder ZZ.
Should I calcul directly in a field or use a script and how ?
or is there a plug-ins that can do that ?
Your help is highly appreciated,
J.
Re: checking file in a extern folder
am 09.01.2008 17:21:39 von Howard Schlossberg
You might want to look at the free 'Moo' plugin
, which can be used to check if a file exists.
Or you can do it without a plugin by trying to import the file into a
container field (with error capture turned on) and then check for
problems if get(lasterror) > 0
Jimmy wrote:
> Hi,
>
> There are 2 fields :
> - Name_of_file : text
> - Present (yes/no)
> and a folder ZZ which contains some files like
> a.pdf, b.jpg , ...........
>
> When I give a name in Name_of_file, Present must
> show if the file existe (yes) or not (no) in the folder ZZ.
>
> Should I calcul directly in a field or use a script and how ?
> or is there a plug-ins that can do that ?