Skip to content

Commit

Permalink
Replace public_id for folder goncy#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Duro authored and Diego Duro committed May 20, 2020
2 parents 74f9fcd + 47140e7 commit a6b02e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions storage/api.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import {CloudinaryResponse, Quality} from "./types";
import {Tenant} from "~/tenant/types";

export default {
upload: (file: File, quality: Quality, folderPath: string = '') => {
const fileName = file.name
//const folderQueryParam = `&folder=${folder}`;

return fetch(
`https://api.cloudinary.com/v1_1/${process.env.CLOUDINARY_CLOUD}/image/upload?upload_preset=${
quality === "high" ? process.env.CLOUDINARY_PRESET_HIGH : process.env.CLOUDINARY_PRESET_LOW
Expand Down

0 comments on commit a6b02e7

Please sign in to comment.