We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future<String> minioUploadFile( String bucketName, String key, String endPoint, String accessKey, String secretKey, String sessionToken, { File file, String fileName, String port, String region, }) async { assert(file != null || (fileName != null && fileName.isNotEmpty)); final minio = Minio( endPoint: 's3-us-west-1.amazonaws.com', accessKey: accessKey, secretKey: secretKey, sessionToken: sessionToken, region: 'us-west-1', enableTrace: true, ); return await minio.fPutObject( bucketName, key, fileName ?? file.absolute.path); }
The text was updated successfully, but these errors were encountered:
What's the key in your fPutObject?
Sorry, something went wrong.
just like "avatar/2021/01/xxxxxxxxxxxxxxxx.jpg"
In the Key area, you pass a string of custom names with extension type.
Like, "my_snap.jpeg".
No branches or pull requests
Future<String> minioUploadFile( String bucketName, String key, String endPoint, String accessKey, String secretKey, String sessionToken, { File file, String fileName, String port, String region, }) async { assert(file != null || (fileName != null && fileName.isNotEmpty)); final minio = Minio( endPoint: 's3-us-west-1.amazonaws.com', accessKey: accessKey, secretKey: secretKey, sessionToken: sessionToken, region: 'us-west-1', enableTrace: true, ); return await minio.fPutObject( bucketName, key, fileName ?? file.absolute.path); }
The text was updated successfully, but these errors were encountered: