
To give you more inside knowledge of the working of the File Genie PHP, here you can read all the available online tutorials!

To give you more inside knowledge of the working of the File Genie PHP, here you can read all the available online tutorials!
With the File Genie PHP Extension you can delete uploaded files. Imagine you have a folder with images on your server, but some of the images are no longer needed. You can now display the files on a page and delete them with one click!
Open your php file where you want to list all the files and have the option to delete them.
You will find the Folder List Server Behavior under Bindings,
Folder List.
1. In the Folder List Name enter the name of this Folder List object.
2. In Folder Browse to the folder that holds the files you would like to
display.
3. By Allowed Extensions you can choose which files you want to display.
In this case Images only.

To apply the Folder List behavior click OK.
A message box appears to tell you that the file called incFileGenie.php has
been copied to your site in the ScriptLibrary folder. Click OK.
1. Insert a table with 1 row and 2 columns.
2. In the first column enter a link to click to delete the file. Can be
text or an image.
3. Click in the second column, open up the Bindings panel and click on the
+ sign next to FolderList.
Select Name and Click on Insert. This
will put the name of the file in the cell.

What you have done so far will only show one file on your page. To actually
show all the image files in the images folder you need to apply the Folder
List Repeater Server Behavior.
1. To apply the Folder List Repeater select the row for
repeating.
2. Open up Folder List Repeater. You will find this behavior under Server
Behaviors, DMXzone, File Genie, Folder List Repeater.

1. Highlight the link to apply the Delete Behavior to. In this case the word
Delete.
2. Open the File Delete Behavior. You will find the it under Server Behaviors,
DMXzone, File Genie, File Delete.
3. Click OK to apply the File Delete Behavior.
This will result in a list with all the file names. To delete a file
click on the Delete link next to the file name. That was easy!
Comments
Be the first to write a comment
You must me logged in to write a comment.