uploadPlatformPhoto static method

Future<PlatformMediumModel> uploadPlatformPhoto(
  1. AppModel app,
  2. String memberId,
  3. String assetPath,
  4. PrivilegeLevelRequiredSimple privilegeLevelRequiredSimple,
)

Implementation

static Future<PlatformMediumModel> uploadPlatformPhoto(
    AppModel app,
    String memberId,
    String assetPath,
    PrivilegeLevelRequiredSimple privilegeLevelRequiredSimple) async {
  var docID = newRandomKey();
  return await PlatformMediumHelper(
          app, memberId, privilegeLevelRequiredSimple)
      .createThumbnailUploadPhotoAsset(
    docID,
    assetPath,
  );
}