display file name - Forum

Forum Navigation
You need to log in to create posts and topics.

display file name

I want to load a text file with

LocalFileToVar "FileInput1" [myvar]

And I want the name of that file to be displayed in a text input object:

id=TextName

How do I do that?

Thanks

(P.S. [myvar] gives me the entire contents of the selected file, but I only want the file name)

.

I tried to post the entire pub file in a code insert but got blocked with this error message:

A potentially unsafe operation has been detected in your request to this site

Your access to this service has been limited. (HTTP response code 403)

If you think you have been blocked in error, contact the owner of this site for assistance.

Block Technical Data

Block Reason: A potentially unsafe operation has been detected in your request to this site
Time: Sat, 21 Jan 2023 13:24:25 GMT

I found it, the variable is

property-name (of FileInput1)

But it displays the file name within brackets.

Here is the entire pub file, it might be useful for your projets:

https://awareware.com/NEOWINPLUGINS/displayname.zip

 

 

Vadim has reacted to this post.
Vadim

But it displays the file name within brackets.

@fkapnist it's because it's an Array with just one element.