marianokit / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

File uploading #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We need to accept user files through magento.

1. Show upload and my images tabs where they should be showing. Use
@AllowUpload attribute as a guide.

2. Upload user images asynchronously using our api, add them to the list of
My Images tab and select as the current image for that field.

We only accept JPG, GIF, PNG, TIFF at this stage. No EPS. 
---------------------
It's all been done and uploaded to magedev for testing.
Need to check that images of different types and sizes can be uploaded.
* different types as listed above
* with transparency, without
* various sizes and proportions from 10x10 to 10MP monsters
* try uploading a non-image
* try uploading an images larger than 20MB

Original issue reported on code.google.com by zetapri...@gmail.com on 24 Jan 2010 at 8:24

GoogleCodeExporter commented 8 years ago
Try a template with one and with multiple image fields.
Try uploading an image, then another one, then another to see how they are 
added and
selected.

Original comment by zetapri...@gmail.com on 24 Jan 2010 at 8:25

GoogleCodeExporter commented 8 years ago
Small images (under 2 MB) upload OK and added to "My images". Checked them for 
all
formats except .EPS on a single image field and multiple image fields templates.

Single image field template - 
Anything above 2MB does not upload correctly and Magento gives an err msg.

On multipage templates -
If one of the images failed to upload (above 2 mb), Magento does not give an 
err msg
every time and replaces the image for that field with one of the other images 
in "My
images" so I see the same image on 2 places in the template.

If I click on "My images" tab after a failed image upload, I see the Magento 
store
header image in my library.
http://www.zetaprints.com/magedev/skin/frontend/default/default/images/logo.gif
(with the background)

A non-image format is recognized correctly!
The err msg pop-up reads:
"Error was occurred while uploading image"
Isn't this better?:
"An error has occurred while uploading the image"

Original comment by agur...@gmail.com on 26 Jan 2010 at 12:23

GoogleCodeExporter commented 8 years ago
Suggestion!

I think we need a hint that an image is being uploaded. If not an animated timer
image.. maybe just replacing the image file name to "Uploading...". 
Right now I figured out that the image is being uploaded while I still see its 
file
name in the "Browse" input field and the page title says "Loading".

Original comment by agur...@gmail.com on 26 Jan 2010 at 12:27

GoogleCodeExporter commented 8 years ago
Images are not uploaded correctly when I'm logged in my Magento account 
(customer).

The process runs OK, I don't get any err msg. I see the uploaded image in "My
images"... But, when I click "Update preview" the image fields in the template 
are
blank, as if I didn't supply an image for that field.

If I refresh the page (without logging out) "My images" library is empty.

Original comment by agur...@gmail.com on 26 Jan 2010 at 12:40

GoogleCodeExporter commented 8 years ago
We gonna run into the file size problem with different hosts. Our customers 
will.
Many hosts do not allow uploading files larger than a certain size. 2MB usually.
It can be increased in config, but they do not allow this.
This is a real issue for cheap hosting. 

We need to explain where and how to configure this size increase, at least.
Any other ideas?

Original comment by zetapri...@gmail.com on 26 Jan 2010 at 7:37

GoogleCodeExporter commented 8 years ago
Error from comment #4 is fixied in 1.7.0.0beta2 (installed on magedev)

Original comment by Anatoly....@gmail.com on 27 Jan 2010 at 6:58

GoogleCodeExporter commented 8 years ago
Now I can't upload an image at all. Used to be able to do it when logged-out. I 
just
tried it logged int, logged out. Every time (for every image size) I get the 
err:

Error was occurred while uploading image

Original comment by agur...@gmail.com on 27 Jan 2010 at 9:14

GoogleCodeExporter commented 8 years ago
Errr, try it now. Works for me.

Original comment by Anatoly....@gmail.com on 27 Jan 2010 at 12:17

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 27 Jan 2010 at 9:17

GoogleCodeExporter commented 8 years ago
Upload works OK (For files under 2MB) on the first time.

Lets say I've uploaded an image for a field, I changed my mind and tried to 
upload a
new image for that same field. The spinning wheel goes on and on when uploading 
the
second image. I get no indication on when the file has been uploaded.

Original comment by agur...@gmail.com on 28 Jan 2010 at 1:34

GoogleCodeExporter commented 8 years ago
Can't reproduce the error now. Maybe you used old code.

Original comment by Anatoly....@gmail.com on 29 Jan 2010 at 6:04

GoogleCodeExporter commented 8 years ago
Yep.. it works now.

Tested it Logged in as a customer and logged out.

Apart from the 2MB file size barrier, the rest is ok.

Original comment by agur...@gmail.com on 31 Jan 2010 at 1:22

GoogleCodeExporter commented 8 years ago
Why are we still limited to 2MB?
Increase to 15MB and try to the largest files you can find.

Original comment by zetapri...@gmail.com on 7 Feb 2010 at 11:59

GoogleCodeExporter commented 8 years ago
The limit is increased to 15MB

Original comment by Anatoly....@gmail.com on 8 Feb 2010 at 5:22

GoogleCodeExporter commented 8 years ago
I'm only allowed to upload files under 8MB.

Original comment by agur...@gmail.com on 8 Feb 2010 at 7:58

GoogleCodeExporter commented 8 years ago
Test it again, please.

Original comment by Anatoly....@gmail.com on 9 Feb 2010 at 8:45

GoogleCodeExporter commented 8 years ago
I uploaded a 15 MB image no problem. Tried a 16mb one, got an err pop-up 
message.

Original comment by agur...@gmail.com on 9 Feb 2010 at 1:42

GoogleCodeExporter commented 8 years ago

Original comment by zetapri...@gmail.com on 9 Feb 2010 at 6:19