|
@@ -65,7 +65,7 @@
|
|
|
if (faliure) {
|
|
|
self.faliureCallback = faliure;
|
|
|
}
|
|
|
- NSString *uploadFileName = [NSString stringWithFormat:@"%@%@%@",[NSDate getCurrentTimestamp], fileName,[UIImage typeForImageData:imageData]];
|
|
|
+ NSString *uploadFileName = [NSString stringWithFormat:@"%@-%@%@%@",UserDefault(UIDKey),[NSDate getCurrentTimestamp], fileName,[UIImage typeForImageData:imageData]];
|
|
|
NSString *keyValue = uploadFileName;
|
|
|
[KSNetworkingManager getUploadSignRequest:KS_POST fileName:uploadFileName keyName:keyValue bucketName:self.bucketName success:^(NSDictionary * _Nonnull dic) {
|
|
|
if ([dic integerValueForKey:@"code"] == 200 && [dic boolValueForKey:@"status"]) {
|
|
@@ -123,7 +123,7 @@
|
|
|
NSMutableArray *fileNameArray = [NSMutableArray array];
|
|
|
for (NSInteger i = 0 ; i < fileDataArray.count; i++) {
|
|
|
NSData *fileData = fileDataArray[i];
|
|
|
- NSString *uploadFileName = [NSString stringWithFormat:@"%@%zd%@%@",[NSDate getCurrentTimestamp], i,fileName,[UIImage typeForImageData:fileData]];
|
|
|
+ NSString *uploadFileName = [NSString stringWithFormat:@"%zd-%@-%@%@%@",i,UserDefault(UIDKey),[NSDate getCurrentTimestamp],fileName,[UIImage typeForImageData:fileData]];
|
|
|
[fileNameArray addObject:uploadFileName];
|
|
|
}
|
|
|
|
|
@@ -208,7 +208,7 @@
|
|
|
if (uploadProgress) {
|
|
|
self.uploadProgress = uploadProgress;
|
|
|
}
|
|
|
- NSString *uploadFileName = [NSString stringWithFormat:@"%@%@%@",[NSDate getCurrentTimestamp], fileName,fileSuffix];
|
|
|
+ NSString *uploadFileName = [NSString stringWithFormat:@"%@-%@%@%@",UserDefault(UIDKey),[NSDate getCurrentTimestamp], fileName,fileSuffix];
|
|
|
NSString *keyValue = uploadFileName;
|
|
|
self.videoLinkUrl = [NSString stringWithFormat:@"https://%@/%@",self.uploadBucket,uploadFileName];
|
|
|
[KSNetworkingManager getUploadSignRequest:KS_POST fileName:uploadFileName keyName:keyValue bucketName:self.bucketName success:^(NSDictionary * _Nonnull dic) {
|
|
@@ -255,7 +255,7 @@
|
|
|
if (faliure) {
|
|
|
self.faliureCallback = faliure;
|
|
|
}
|
|
|
- NSString *uploadFileName = [NSString stringWithFormat:@"%@%@%@",[NSDate getCurrentTimestamp], fileName,fileSuffix];
|
|
|
+ NSString *uploadFileName = [NSString stringWithFormat:@"%@-%@%@%@",UserDefault(UIDKey),[NSDate getCurrentTimestamp], fileName,fileSuffix];
|
|
|
NSString *keyValue = uploadFileName;
|
|
|
[KSNetworkingManager getUploadSignRequest:KS_POST fileName:uploadFileName keyName:keyValue bucketName:self.bucketName success:^(NSDictionary * _Nonnull dic) {
|
|
|
if ([dic integerValueForKey:@"code"] == 200 && [dic boolValueForKey:@"status"]) {
|