Disable moving items in GCDWebUploader

201 views Asked by At

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?

2

There are 2 answers

0
Pol On

Instead of using GCDWebUploader class directory, create a subclass called MyWebUploader and override -shouldMoveItemFromPath:toPath: and -shouldCreateDirectoryAtPath: to return NO.

0
Return Zero On

You can do it by editing GCDWebUploader.m Class . Go to Pods>GCDWebServer>GCDWebUploader>GCDWebUploader.m you will see following function .enter image description here

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 :

enter image description here