-
Notifications
You must be signed in to change notification settings - Fork 0
Cloudinary #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Cloudinary #55
Conversation
brandonw504
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some of the contexts like AuthContext and SidebarContext aren't actually part of uploading media (we're using Auth.js instead of the custom authentication system in the CMS). Also, can you implement these components in a page? You'll probably see that a lot of things won't work if you just directly take from the CMS. Sorry I forgot to mention this specifically earlier, but all we want right now is the ability to upload a file and associate it with a particular product. The media gallery is relatively low priority at the moment since most people probably won't be using duplicate images for different products.
…ia folder under (api)/_typedefs and (api)/_datalib with the appropriate mediaItem and findMediaItem that are called in (pages)/uploaded-media/page.tsx
brandonw504
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice you changed the import statements for some of the components in the uploaded-media page.tsx, but they're still not directing to the correct path. Just in case I didn't explain this very well before, the @ symbol before the path name refers to a shortcut that we specify in the tsconfig. It isn't working since componentmedia isn't a shortcut. Also, even though you don't have the actual upload functions yet, can you test the UI and get it into a state where instead of calling the upload function, it can maybe just display a popup saying that the file was uploaded (or anything temporary)? We're less concerned about getting this actually working than being able to see whether the UI and drag and drop/file system popup behavior looks correct.
…m.ts needs fixing
Initial commit for PR on Cloudinary