Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
form.png 113.7 kB 2 05-Dec-2023 05:32 Sandor
png
homedir.png 138.1 kB 1 05-Dec-2023 05:32 Sandor
png
homedir1.png 849.2 kB 1 05-Dec-2023 05:32 Sandor
png
homedir2.png 795.2 kB 1 05-Dec-2023 05:32 Sandor
png
link1.png 8.6 kB 1 05-Dec-2023 05:32 Sandor
png
link2.png 3.7 kB 1 05-Dec-2023 05:32 Sandor
png
notify1.png 64.0 kB 2 05-Dec-2023 05:32 Sandor
png
notify2.png 71.6 kB 2 05-Dec-2023 05:32 Sandor
png
result.png 25.0 kB 1 05-Dec-2023 05:32 Sandor
png
result2.png 23.0 kB 1 05-Dec-2023 05:32 Sandor
png
result3.png 9.3 kB 1 05-Dec-2023 05:32 Sandor
png
webinterface_customizations.pn... 62.6 kB 2 05-Dec-2023 05:32 Sandor

This page (revision-9) was last changed on 05-Dec-2023 05:32 by Sandor

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

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 3 changed one line
This example is not exclusively a CrushTask scenario but it is using the same among others.
This example is not exclusively a [CrushTask] scenario but it is using the same among others.
At line 9 changed 5 lines
1. Custom Form. This custom form is similar to the one used in [Self Registration]. On Preferences, Webinterface, Custom Forms page create a new form, ours is called notify_form. Add (drag it or use the + sign in front) a single Dropdown to the right side and customize it as follows:
Label: arbitrary, we used Who to notify?
Name: notify_who . This cannot have a space in it and will be used later at the notification event as a variable.
Options: add email addresses as different options here. The first part before the : is the alias, and the second part is the value. This syntax is not obligatory, you can simply enter the email address in the field and that will be displayed and used.
Required: Yes
!1. Custom Form.
This custom form is similar to the one used in [Self Registration]. On Preferences, Webinterface, Custom Forms page create a new form, ours is called notify_form. Add (drag it or use the + sign in front) a single Dropdown to the right side and customize it as follows:
Label: arbitrary, we used Who to notify?\\
Name: notify_who . This cannot have a space in it and will be used later at the notification event as a variable.\\
Options: add email addresses as different options here. The first part before the : is the alias, and the second part is the value. This syntax is not obligatory, you can simply enter the email address in the field and that will be displayed and used.\\
Required: Yes\\
At line 18 changed one line
2. User. We need to create a user in User Manager. For simplicity's sake, both Username and Password will be upload. This is important later when building the link for the visitors.
!2. User
We need to create a user in User Manager. For simplicity's sake, both Username and Password will be upload. This is important later when building the link for the visitors.
At line 20 changed one line
2.1 Upload-only interface. In User Manager, Quick Jump go to Webinterface. Enable the Available Customizations section by putting a checkmark in front of the section. Filter to Upload Only on the left side and double-click on the Upload Only Window option. Set its value to True. Save the user.
!2.1 Upload-only interface.
In User Manager, Quick Jump go to Webinterface. Enable the Available Customizations section by putting a checkmark in front of the section. Filter to Upload Only on the left side and double-click on the Upload Only Window option. Set its value to True. Save the user.
At line 22 changed one line
2.2 Applying the form for the user. Scroll down in the user's Webinterface section to the Forms, enable this with the checkmark in front of it, and select the notify_form. Save the user.
!2.2 Applying the form for the user
Scroll down in the user's Webinterface section to the Forms, enable this with the checkmark in front of it, and select the notify_form. Save the user.
At line 26 changed 5 lines
2.3. HomeDirectory Event. We need to create an event for this user. In Quick Jump go to Events. Create a new event (we called ours homedir_NO_DELAY)as follows:
Action type: Run Plugin
The event is triggered when the use Connects
"Always do the event" -enabled
"Do event immediately" - enabled. In the Plugin selector we select the HomeDirectory (User Defined) plugin.
!2.3. HomeDirectory Event.
We need to create an event for this user. In Quick Jump go to Events. Create a new event (we called ours homedir_NO_DELAY)as follows:\\
Action type: Run Plugin\\
The event is triggered when the use Connects\\
"Always do the event" -enabled\\
"Do event immediately" - enabled.\\
In the Plugin selector, we select the HomeDirectory (User Defined) plugin.
At line 32 removed one line
[attachments|homedir1.png]
At line 34 changed 7 lines
At the plugin config, the Path field needs to define a directory that will be the root of the upload folders.
Set up the Directory Permissions as you wish, Upload, and Resume Transfers are essential, but you might want to enable the Create Folder too. These types of "anonymous" users won't see each other's data.
Allowed Server Port: All
Use Unique Time Stamped Folder option enabled, variable sequence: {MM}{dd}{yy}{HH}{mm}{ss}. ,
Username matching: *
Only build VFS in memory - enabled
Only run if configured for a login event - enabled
At the plugin config, the Path field needs to define a directory that will be the root of the upload folders.\\
Set up the Directory Permissions as you wish, Upload, and Resume Transfers are essential, but you might want to enable the Create Folder too. These types of "anonymous" users won't see each other's data.\\
Allowed Server Port: All\\
Use Unique Time Stamped Folder option enabled, variable sequence: {{{
{MM}{dd}{yy}{HH}{mm}{ss}
}}}
Username matching: *\\
Only build VFS in memory - enabled\\
Only run if configured for a login event - enabled\\
At line 42 changed one line
[attachments|homedir2.png]
[attachments|homedir.png]
At line 44 changed one line
2.4 Email notification event. Similarly to the previous event, we need to create a new one for sending the email notification to the selected contact person. Configure the event the following way:
!2.4 Email notification event
Similarly to the previous event, we need to create a new one for sending the email notification to the selected contact person. Configure the event the following way:
At line 46 changed 5 lines
Action: Run Plugin
When this user: Uploads
Always do the event
Do event after user: Disconnects all sessions
CrushTask (User Defined)
Action: Run Plugin\\
When this user: Uploads\\
Always do the event\\
Do event after user: Disconnects all sessions\\
CrushTask (User Defined)\\
At line 61 added one line
{{{
At line 55 changed one line
{line_end} - this variable sequence enlists all uploaded file paths in new lines.
{line_end}
}}}
This variable sequence enlists all uploaded file paths in new lines.
At line 68 added one line
\\
At line 61 changed one line
3. On Preferences -> Webinterface -> Login page, Header or Footer field insert a hyperlink containing the domain name or IP of the server and the credentials for the upload user like this: https://yourserver.com/?u=upload&p=upload
!3. Hyperlink to the Login page
On Preferences -> Webinterface -> Login page, Header or Footer field, insert a hyperlink containing the domain name or IP of the server and the credentials for the upload user like this: https://yourserver.com/?u=upload&p=upload
At line 80 added 10 lines
A possible result:
[attachments|result.png]
[attachments|result2.png]
[attachments|result3.png]
Naturally, you can customize the link's appearance forward, this is just a simple draft.
Version Date Modified Size Author Changes ... Change note
9 05-Dec-2023 05:32 4.668 kB Sandor to previous
8 05-Dec-2023 05:32 4.611 kB Sandor to previous | to last
7 05-Dec-2023 05:32 4.58 kB Sandor to previous | to last
6 05-Dec-2023 05:32 4.573 kB Sandor to previous | to last
5 05-Dec-2023 05:32 4.485 kB Sandor to previous | to last
4 05-Dec-2023 05:32 4.408 kB Sandor to previous | to last
3 05-Dec-2023 05:32 4.437 kB Sandor to previous | to last
2 05-Dec-2023 05:32 4.396 kB Sandor to previous | to last
1 05-Dec-2023 05:32 0.39 kB Sandor to last
« This page (revision-9) was last changed on 05-Dec-2023 05:32 by Sandor
G’day (anonymous guest)
CrushFTP11 | What's New

Referenced by
CrushTask

JSPWiki