Content
View differences
Updated by Marcello Rocha Pereira 4 days ago
The service shall receive:
* Container - WorkPackage
* Project Storage - ProjectStorage
* File Path - String
* Filename - String
* File data - IO
It will could be responsible for uploading creating the file to link, consuming the provided project storage folder and necessary commands for creating a FileLink tied to the provided container.
Quick rundown of expected functionality:
1. Check if the passed File Path, therefore referred as Location, already exists
1. If not create it
2. Upload the provider file (IO) using the filename to the specified Location
3. With the resulting File Information, create a FileLink contained by the provided container
1. Please use FileLinks::CreateService to ensure handling of journals
2. The creator of the FileLink should be the same as the WorkPackage Author or fallback to `User.system`
<br> folders etc.
* Container - WorkPackage
* Project Storage - ProjectStorage
* File Path - String
* Filename - String
* File data - IO
It will
Quick rundown of expected functionality:
1. Check if the passed File Path, therefore referred as Location, already exists
1. If not create it
2. Upload the provider file (IO) using the filename to the specified Location
3. With the resulting File Information, create a FileLink contained by the provided container
1. Please use FileLinks::CreateService to ensure handling of journals
2. The creator of the FileLink should be the same as the WorkPackage Author or fallback to `User.system`
<br>