getFullURLFileHosting static method
Implementation
static String getFullURLFileHosting(
String collection,
int documentID,
String fileName,
) {
String url = Common.url_host;
if (!url.endsWith('/')) url += '/';
url += Common.FOLDER_IMAGE_UPLOAD;
if (!url.endsWith('/')) url += '/';
url += collection;
if (!url.endsWith('/')) url += '/';
if (documentID != -1) url += documentID.toString();
if (!url.endsWith('/')) url += '/';
url += fileName;
return url;
}