Product Upload UI

Code

UI

Resources

2 thoughts on “Product Upload UI”

  1. If the create product server action already has the image inside form data which is sent to the server are you not then doubling the data transfer by sending it again in a new form data object sent in upload image action? Seems like for much larger images or other large file types that’s a doubled up transfer which could slow the app down? Or have I misunderstood something?
    Thanks

    1. Yes you are absolutely right! We have two hops in our current setup as you note, which is less efficient than if we simply call our NestJS backend directly from the Next.js client. This is totally possible and a totally sensible approach if you’re trying to cut down on the overhead.

Leave a Reply