upload-produk-pic-flow

appereance

add div.foto

trigger #txtBrowseProduk

save data, upload foto to server

server send response pic url

set div.foto with pic

set preview with pic

produk management

call all produk

update produk

import from database

Simpan

klik simpan produk

sudah ada pic?

sudah ada data?

make error red

upload foto

simpan dengan idproduk_master = 0

catat idpicture yang baru disimpan

Klik lagi simpan produk

save produk

save produk_master

save picture, berdasarkan idpicture yang baru di update

steps

call upload dialog

set image with id

when click upload button

fungsi upload picture

add

hapus

set primary