get_file.php

Last modified by YellowFox_RD on 2025/01/23 10:23

Table of Contents

This function returns a signature file (PNG), an uploaded picture/ photo (JPG) or a digital tachograph file (DDD).

Description

GET get_file.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&filename=MD5

Parameter

ParameterDescriptionTypeNoteMandatory
companyRTI company keystring yes
vehicleRTI vehicle keystringYou have to send one of these parameters, vehicle, group or import!yes
groupRTI group keystringYou have to send one of these parameters, vehicle, group or import!yes
importRTI import key(all vehicles)stringYou have to send one of these parameters, vehicle, group or import!yes
filenameMD5 Hashstringyou get from get_custom_form_data.php or get_file_list.php,
YellowFox-filename, not the original filename (field DID in get_file_list.php)
yes
markdownload0 - marks this file not as downloaded
1 - marks this file as downloaded
integer0 is the standardno

Return

You get a PNG, a JPG or a DDD file for download. If not you get a error message "ERROR:Description".

Error reponses

errordescription
NO_FILE_FOUNDFile not found.
FILE_NOT_UPLOADEDFile is in transmission. Please try again later.
NOT_SUPPORTED_FILETYPEFile type unknown. Please contact support.

Example call

example call for returning an image file

https://map.yellowfox.de/rti/get_file.php?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&filename=1832c7a0a4aa71647523d1a75e4506da&markdownload=1

https:
//map.yellowfox.de/rti/get_file.php?company=COMPANY_RTIKEY&vehicle={"type":"car_ident","groupKey":"GROUP_RTIKEY","ident":"VEHICLE_IDENT"}&filename=1832c7a0a4aa71647523d1a75e4506da&markdownload=1