oschwarzenberg's avatar

The best way to handle customer image uploads

I'm working on an Online Shop for Canvas Prints. Customers can upload their Images. But I have no idea to handle the images.

After the Upload should i move the Images in an directory named with the session Id. I can't use the user ID, because you don't have to login before upload.

Has somebody an idea?

0 likes
2 replies
jlrdw's avatar

To be able to pull up their images meaning them not you, you're going to have to associate something with them, so why not a login.

Assign them a unique ID, or use their email I'd say practice around with a couple of techniques prior to using for real.

They're not really a customer unless you can associate them as such. Otherwise it would be a totally Anonymous user.

1 like
oschwarzenberg's avatar

I think for the shopping experience it is better, that a customer only have to login if he really to order.

The main problem with an temporary uplod directory for me is to decide, what time i can delete the images.

At the moment i have the following idea:

  1. upload the images in a temporary directory
  2. the user can edit, crop, rotate and filter images
  3. the user can put these images in the cart (move images to another directory?)
  4. the user has to register or login
  5. the user can order
  6. delete unnecessary temporary images
  7. delete ordered images after a while.

so i have: temporary uploaded images the original ordered images the edited ordered images

do i think to complicated?

Please or to participate in this conversation.