Skip to content

Commit

Permalink
Merge branch 'main' of github.com:BES-HOTSIX/HOTSIX_FE into kyumho
Browse files Browse the repository at this point in the history
  • Loading branch information
kyumho kim committed Feb 13, 2024
2 parents f7ff72a + f88ef06 commit 31e9bb5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/auth/SignUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,14 @@ export default function SignUpForm() {
const uploadImageToCloudinary = async (imageFile) => {
const formData = new FormData()
formData.append('file', imageFile)
formData.append('upload_preset', 'ejnekuco') // 업로드 프리셋을 설정하세요
formData.append(
'upload_preset',
process.env.NEXT_PUBLIC_CLOUDINARY_UPLOAD_PRESET
) // 업로드 프리셋을 설정하세요

try {
const response = await axios.post(
'https://api.cloudinary.com/v1_1/dlfl2w8hk/image/upload',
process.env.NEXT_PUBLIC_CLOUDINARY_API_URL,
formData
)
if (response.status === 200) {
Expand Down

0 comments on commit 31e9bb5

Please sign in to comment.