SimpleS3 class
Properties
getUploadPercentage
→ Stream
Provide stream of dynamic type. This stream contains upload percentage.
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
uploadFile (File file , String bucketName , String poolID , _AWSRegion region , {String s3FolderPath = "" , String ? fileName , _AWSRegion? subRegion , S3AccessControl accessControl = S3AccessControl.publicRead , bool useTimeStamp = false , TimestampLocation timeStampLocation = TimestampLocation.prefix , bool debugLog = false })
→ Future <String >
Upload function takes File, S3 bucket name, pool ID and region as required param
Default access control is PUBLIC_READ
Debugging is disable by default this will prevent any logs and messages
To enable use debugLog:true
Static Methods
delete (String filePath , String bucketName , String poolID , _AWSRegion region , {_AWSRegion? subRegion , bool debugLog = false })
→ Future <bool >
S3 Delete static function requires no instance
Returns bool on success