Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-6) was last changed on 05-Dec-2023 05:32 by Ben Spink

This page was created on 05-Dec-2023 05:32 by Ben Spink

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 4 changed one line
This plugin expects a user.XML file response, a VFS.XML file response, and a custom VFS items response...example provided below:
This plugin expects a user.XML file response, a VFS.XML file response, and a custom VFS items response...examples provided below.\\
\\
You can get a user.XML file from any user created in the User Manager. The same is true for the VFS.XML. So those examples are not provided here. The complex part is the VFS structure object which has to represent the VFS folder item from the User Manager...and that is the example provided below. In the URLs that are called, there are variable replacements that can be done for the user_name and user_password.\\
At line 9 added one line
At line 9 changed 12 lines
<VFS_subitem type="properties">
<type>DIR</type>
<dir>/</dir>
<name>HOME</name>
<data type="vector">
<data_subitem type="properties">
<url>FILE://home/crushftp/testuser1/HOME/</url>
<type>DIR</type>
</data_subitem>
</data>
</VFS_subitem>
</VFS>}}}
<VFS_subitem type="properties">
<type>FILE</type>
<dir>/</dir>
<name>Upload</name>
<data type="vector">
<data_subitem type="properties">
<url>FILE://C:/FTP/Upload1/</url>
<type>DIR</type>
</data_subitem>
</data>
</VFS_subitem>
<VFS_subitem type="properties">
<dir>/</dir>
<type>DIR</type>
<virtualPath>/</virtualPath>
<name>Download</name>
</VFS_subitem>
<VFS_subitem type="properties">
<dir>/Download/</dir>
<type>DIR</type>
<virtualPath>/Download/</virtualPath>
<name>Sender1</name>
</VFS_subitem>
<VFS_subitem type="properties">
<dir>/Download/</dir>
<type>DIR</type>
<virtualPath>/Download/</virtualPath>
<name>Sender2</name>
</VFS_subitem>
<VFS_subitem type="properties">
<dir>/Download/Sender1/</dir>
<type>FILE</type>
<virtualPath>/Download/Sender1/</virtualPath>
<name>File2.zip</name>
<data type="vector">
<data_subitem type="properties">
<url>FILE://C:/FTP/Testfile2.zip</url>
<type>FILE</type>
</data_subitem>
</data>
</VFS_subitem>
<VFS_subitem type="properties">
<dir>/Download/Sender2/</dir>
<type>FILE</type>
<virtualPath>/Download/Sender2/</virtualPath>
<name>File1.zip</name>
<data type="vector">
<data_subitem type="properties">
<url>FILE://C:/FTP/Testfile1.zip</url>
<type>FILE</type>
</data_subitem>
</data>
</VFS_subitem>
</VFS>
}}}
At line 146 changed one line
if (!password.trim().equals(""))
if (!password.trim().equals("") || info.getProperty("publickey_lookup", "false").equals("true") || info.getProperty("anyPass", "false").equals("true"))
Version Date Modified Size Author Changes ... Change note
6 05-Dec-2023 05:32 14.233 kB Ben Spink to previous
5 05-Dec-2023 05:32 13.806 kB Ben Spink to previous | to last
4 05-Dec-2023 05:32 11.265 kB Ben Spink to previous | to last
3 05-Dec-2023 05:32 11.146 kB Ben Spink to previous | to last
2 05-Dec-2023 05:32 11.145 kB Ben Spink to previous | to last
1 05-Dec-2023 05:32 19.315 kB Ben Spink to last
« This page (revision-6) was last changed on 05-Dec-2023 05:32 by Ben Spink
G’day (anonymous guest)
CrushFTP11 | What's New
JSPWiki