Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Upload preset must be specified when using unsigned upload #50

Closed
sushantlp opened this issue May 9, 2018 · 3 comments
Closed

Upload preset must be specified when using unsigned upload #50

sushantlp opened this issue May 9, 2018 · 3 comments

Comments

@sushantlp
Copy link

Hi,
i am using laravel 5.5 and using 0.4.* cloudder. when i upload image my server to cloudinary server error return " Upload preset must be specified when using unsigned upload ".

@jrm2k6
Copy link
Owner

jrm2k6 commented May 9, 2018

Hi @sushantlp
Could you paste some of the code you have?

@sushantlp
Copy link
Author

hi @jrm2k6
this is my code

try {

        $status = $this->status;
        $medi = new MediController();
        $database = new DatabaseSaver();
        
        if ($status == 1) {
            
            $response = Cloudder::upload($this->filePath,$this->publicId,array("folder"=>$this->folder,"use_filename"=>TRUE ,"unique_filename"=>FALSE))->getResult();
            
            if ($response) {
                
                // Return Cloudinary Image Url
                $path = $response['secure_url'];
                
                $response = $medi->processMerchantMenuPicUpload($this->data,$path);
                if (!$response) {
                    return false;
                }
                return true;
            }
        }
    } 
    catch(\Exception $e) {
        
        $database->errorLog('Exception In GlobalCloudinaryImageUpload Job()',$e->getMessage());
        
        return false;
    }

@jrm2k6
Copy link
Owner

jrm2k6 commented Jun 20, 2018

Are you sure your .env file has the correct credentials?

@jrm2k6 jrm2k6 closed this as completed Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants