I'm trying to implement GCDWebUploader in my iOS app. I want to disable 'Move Items' and 'Create Folder' options. How can I do that?
Disable moving items in GCDWebUploader
201 views Asked by Mohit At
2
There are 2 answers
0
On
You can do it by editing GCDWebUploader.m Class . Go to Pods>GCDWebServer>GCDWebUploader>GCDWebUploader.m you will see following function .
Edit function as your requirement. for example I don't want let user to create new folder then i need to change in following functions:
- (BOOL)shouldCreateDirectoryAtPath:(NSString*)path {
return NO;
}
if you face following warning just click unlock :
Instead of using
GCDWebUploader
class directory, create a subclass calledMyWebUploader
and override-shouldMoveItemFromPath:toPath:
and-shouldCreateDirectoryAtPath:
to return NO.