getFullURLFileHosting static method

String getFullURLFileHosting(
  1. String collection,
  2. int documentID,
  3. String fileName
)

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;
}