Sv translation |
---|
|
Laden Sie eine neue Datei in die Dateiablage hoch. Beschreibung /file_storage/upload_file.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&path=PATH ParameterQuery-ParameterParameter | Beschreibung | Typ | Hinweis | Pflicht |
---|
company | RTI Firmenschlüssel | string |
| ja | import | RTI Importschlüssel | string |
| ja | path | Ziel-Pfad | string | Format: Ordner/Unterordner/.../Zielordner (durch / getrennt) Wurzelverzeichnis muss nicht mit angegeben werden. Pfadangaben sind case-insensitive. Wenn nicht angegeben, wird die Datei in das Wurzelverzeichnis geladen. | nein | check_duplicates |
| string | Dieses Flag entscheidet ob eine Duplikatsprüfung vor dem Upload durchgeführt werden soll. Kann die Werte true/false annehmen. Wenn aktiviert und ein Duplikat festgestellt wird, so erhalten Sie als Status (siehe Rückgabe) 'File recognized as duplicate'. Die Datei wird nicht erneut hochgeladen und Sie erhalten als UUID den Wert des bereits in Ihrer Dateiablage vorhandenen Duplikats. Die Prüfung erfolgt über die gesamte Dateiablage hinweg, nicht nur im angegebenen Pfad. Ist standardmäßig auf true gesetzt. | nein |
Body-ParameterParameter | Beschreibung | Typ | Hinweis | Pflicht |
---|
file | Datei | file | Sie können aktuell die folgenden Dateitypen anhängen: - PNG
- JPG
- GIF
- MS Word
- MS Excel
- PDF
Sie können nur eine Datei pro Anfrage hochladen. Die maximale Dateigröße beträgt 2MB. | ja |
|
...
Wenn nicht angegeben, wird die Datei in das Wurzelverzeichnis geladen.
...
RückgabeLiegen Fehler in der Konfiguration der Parameter vor, erhalten Sie "ERROR:Beschreibung" zurück. Wurde der Hochlade-Vorgang gestartet, erhalten Sie das Ergebnis als JSON. |
...
...
...
...
"uuid":"08910afd0bfcc7aa193d40c486ca156a" |
|
...
...
Die UUID können Sie zur Referenz für die Funktion file_storage/modify_file.php nutzen oder um Anhänge über do_order oder do_message anzuhängen. Bei erfolgreichem Hochladen erhalten Sie als Status 'OK' und die neu hinterlegte UUID für diese Datei. Im Fehlerfall erhalten Sie den entsprechenden Status und die UUID bleibt leer
|
...
Sv translation |
---|
|
Upload a new file to file storage. Description /file_storage/upload_file.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&path=PATH ParametersQuery parametersParameter | Description | Type | Note | Mandatory |
---|
company | RTI company key | string |
| yes | import | RTI import key | string |
| yes | file | new file | file | The following file types are currently allowed: - PNG
- JPG
- GIF
- MS Word
- MS Excel
- PDF
You can only upload one file per request. The maximum file size is 2 MB. | yes | path | target path | string | Format: folder/subfolder/.../target folder (separated by /) Root does not have to be specified in path. Paths are case insensitive. If not set, file will be uploaded to root. | no | check_duplicates |
| string | This flag marks if a duplicate check should be done before uploading. Can be set to true or false. If activated and a duplicate was recognized, you will receive 'File recognized as duplicate' as the status (see return value). The file will not be uploaded again, but you will receive the uuid of the already existing duplicate in your file storage. This function always checks for duplicates in the whole storage, not just the set path. Is true by default. | no |
Body parametersParameter | Description | Type | Note | Mandatory |
---|
file | new file | file | The following file types are currently allowed: - PNG
- JPG
- GIF
- MS Word
- MS Excel
- PDF
You can only upload one file per request. The maximum file size is 2 MB. | yes |
ReturnIf there are errors in the configuration of parameters, you will receive "ERROR:description". If the upload was started, you will receive the result as JSON. Code Block |
---|
| [
{
"name": "file.png",
"status": "OK",
"uuid":"08910afd0bfcc7aa193d40c486ca156a"
}
] |
On successful upload you will receive the status "OK" and the UUID for the new file. On error you will get the corresponding error message and the UUID will be empty. You can use the UUID as reference for file_storage/modify_file.php or to attach files via do_order resp. do_message |
...