[interchange-bugs] [Bug 316] New - Image Upload/Listing Widgets In Item/Flex Editors

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Mon Sep 3 19:04:01 2001


http://developer.akopia.com/bugs/show_bug.cgi?id=316

*** shadow/316	Mon Sep  3 19:03:21 2001
--- shadow/316.tmp.2156	Mon Sep  3 19:03:21 2001
***************
*** 0 ****
--- 1,72 ----
+ Bug#: 316
+ Product: Interchange
+ Version: 4.9.0
+ Platform: Other
+ OS/Version: other
+ Status: NEW   
+ Resolution: 
+ Severity: critical
+ Priority: P2
+ Component: Admin UI
+ AssignedTo: mike@minivend.com                            
+ ReportedBy: cprince@redhat.com               
+ URL: http://demo.akopia.com
+ Summary: Image Upload/Listing Widgets In Item/Flex Editors
+ 
+ Hi Mike,
+ 
+ I'm listing this problem as critical because it affects the addition of items 
+ to the catalog, which is critical to the operation of most e-commerce sites.
+ 
+ When using the item editor's "Create New Item" function, the default widget for 
+ the image and thumb fields is Image Upload. When you click the browse button 
+ for either of these fields, you are presented with a browse list from the local 
+ harddisk. After you navigate to a file and select it, the path and filename are 
+ listed in the text input. Continue to complete the new item's info and click 
+ Ok. The items page is listed and the new item is in the list. If you click it 
+ and look at the image field, you see that the local path has been saved in the 
+ products table. If you go to the images/items dir and do an ls, you will find 
+ that the image wasn't actually uploaded. If you pull up the catalog and go to 
+ the new item, it will have a broken image.
+ 
+ At one point in the past, the image and thumb fields were configured with the 
+ Image Listing widget and an appended link to the upload_file page. I switched 
+ the meta for products::image to this and found that it's not ideal either as 
+ your new item's info is lost due to not submitting the form before going to the 
+ upload_file page.
+ 
+ I've thought about this problem at length and even begain coding a custom 
+ upload_file page that worked as a pop-up. The problem with this is the Image 
+ Listing widget's select box (back in the item/flex editor) won't have the newly 
+ uploaded file available to select after the upload in the popup.
+ 
+ Neither of these existing image related widgets are ideal. The Image Upload 
+ widget doesn't upload, there's no way to select another image without uploading 
+ a new one, and once an image has been selected, you can't set image to none. 
+ 
+ The Image Listing widget with the appended upload link looses other changes in 
+ the item editor or flex editor and you must select New, save the entry and edit 
+ it again to replace an existing selected image.
+ 
+ What I think (IMHO) is needed is a new widget called Image. It should have a 
+ combo select box like the image listing and should have an option for none/new. 
+ It should also have a browse button and text field for a path. If you select an 
+ image with the select box, or select new and enter a filename for an image 
+ already on the server, it should work just like the existing image listing 
+ widget. When the new item or entry is saved, the selected or new image will be 
+ saved in the products table.
+ 
+ If you click browse and select a local file on your workstation, the path 
+ should be visible in the text input. There should also be an upload button 
+ beside the Browse button. When it's clicked, the new item/entry should be saved 
+ as is in the products table and the next page should be the do_upload page 
+ which should then bounce you back to the item/flex editor with the item you 
+ were creating as the current item. The item's image field's select box should 
+ have the image you just uploaded selected.
+ 
+ Maybe there is something I'm not realizing about all this that will prevent 
+ this from working, but I hope we can solve this problem somehow.
+ 
+ Thanks,
+ 
+ Cameron