bommuraj Posted June 27, 2014 Share Posted June 27, 2014 Hi, In product page, product image uploading is working, but if i choose other file formet like .txt it's show error in different page. i want to show that error message in same product page. Please help me, how to solve this? Regards, Bommuraj Link to comment Share on other sites More sharing options...
vekia Posted June 27, 2014 Share Posted June 27, 2014 it's show error in different page. what error and where? Link to comment Share on other sites More sharing options...
bommuraj Posted July 14, 2014 Author Share Posted July 14, 2014 (edited) I got this error "Image format not reccognized, allowed formats are: .gif, .jpg, .png" while upload product custome file. Edited July 14, 2014 by bommuraj (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2014 Share Posted July 14, 2014 yea this is what i arleady know :-) what file extension you're trying to upload? it's one from mentioned in error code ? or it's totally different ? Link to comment Share on other sites More sharing options...
bommuraj Posted July 14, 2014 Author Share Posted July 14, 2014 (edited) Hi, thanks for your reply, when user upload different file, i want to show this error message in same page. Thanks. Edited July 14, 2014 by bommuraj (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 14, 2014 Share Posted July 14, 2014 What do you mean by different page? You want the error to show up without page refresh? Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2014 Share Posted July 14, 2014 prestashop doesnt allow to upload other files than files you mentioned and this message should appear by default im affraid that i missed something important from your messages :/ Link to comment Share on other sites More sharing options...
bommuraj Posted July 14, 2014 Author Share Posted July 14, 2014 Yes, i want to show that message up without page refresh. Link to comment Share on other sites More sharing options...
NemoPS Posted July 14, 2014 Share Posted July 14, 2014 You cannot upload txt as image, if you want that you have to use file attachments As for the refresh, it involves modifying the core (although it should be ajax already, weird), or overriding, AdminProductController Link to comment Share on other sites More sharing options...
Recommended Posts