LINHU Posted July 7, 2009 Share Posted July 7, 2009 I have installed the prestashop I want to upload the product driver, I choose "catalog->attachments->add new" but I got a error "File too large, maximum size allowed: 2000 kb" anybody could tell me where I could modify the limit "2000Kb"?? Link to comment Share on other sites More sharing options...
LINHU Posted July 7, 2009 Author Share Posted July 7, 2009 nobody knows why? c'est pas normal.... Link to comment Share on other sites More sharing options...
Paulw01 Posted July 7, 2009 Share Posted July 7, 2009 Do you mean "product importer" for use with csv files ?Paul Link to comment Share on other sites More sharing options...
matolog Posted August 22, 2009 Share Posted August 22, 2009 I have installed the prestashop I want to upload the product driver, I choose "catalog->attachments->add new" but I got a error "File too large, maximum size allowed: 2000 kb" anybody could tell me where I could modify the limit "2000Kb"?? did somebody resolve this problem ? i have the same and at this time is 2MB for attachments like PDF not too mach Link to comment Share on other sites More sharing options...
CYTechnologies Posted August 22, 2009 Share Posted August 22, 2009 Hello,To change this size take the below steps.1. Open the file - admin(or your folder name for the administrative area)/tabs/AdminAttachments.phpAt this stage I suggest making a backup of the file just in case you change something your not supposed to.2. Around line 18 you will see: class AdminAttachments extends AdminTab { protected $maxFileSize = 2000000; 3. Change "2000000" to "8000000" (Exclude quotes), basically change the 2 to a 8.4. Save the file and upload it back to your server. Now, to note - if your server only allows 2Mb as a maximum upload size you will also have to change your php settings. So if this still does not work, you will need to investigate your max upload size with your webhost. Link to comment Share on other sites More sharing options...
matolog Posted August 22, 2009 Share Posted August 22, 2009 thank you very much, that is exactly what i need. Link to comment Share on other sites More sharing options...
ukbaz Posted September 4, 2009 Share Posted September 4, 2009 Hi have upped the filesize as above, and trying to upload both as a zip and exe file - both have same problem - error messages as:3 errorsthe field file is requiredthe field mime is requiredthe field name is required at least in English (English) This does not happen with smaller file as pdf - any idea why this is happeningThanksBaz Link to comment Share on other sites More sharing options...
ukbaz Posted September 6, 2009 Share Posted September 6, 2009 Am beginning to wonder if anyone from Presta team ever reads this forum. Ther do seem to be a somewhat large incidence of questions that attract no response - Pity since owing to a lack of documentation this seems to be the only place to try and get a cogent answer to a question!It is a great cart, with many excellent features, but the lack of adequate documentation is a real hindrance to it becoming more of an accepted choice for many people, and in my case is rapidly turning me off it!Surely it would not be too much to ask for improved user guide/forum response at this stage of development - unless I am the only user who feels this to be an issue?Baz 1 Link to comment Share on other sites More sharing options...
codegrunt Posted September 6, 2009 Share Posted September 6, 2009 I mean no offense ukbaz but keep in mind that Prestashop is free software and you are already receiving the benefits of a massive amount of man hours if you are using the product at all. If you need something beyond what is on offer you should consider supporting the project monetarily or rolling up your sleeves yourself to help. For the record, I am *not* a Prestashop developer so I am not speaking for them as much as pointing out the fact that you should be thankful that these folks offer this codebase for free.Prestashop from what I have seen so far is very easy to read as far as the source is concerned and the code itself looks reasonably well documented. If you encounter an error, you can search the source code for it and in the few cases I have tried so far I was able to nail down the general reason for the error quite quickly.The original problem here was due to file upload file size sanity limits (a good thing) in the Prestashop code. Your error might be related but it is not 100% clear to me what you are doing. From the error message though it sounds like file you uploaded did not make it through the sanity checks for file type. My guess would be that "zip" and "exe" are not allowed file types or your local browser has messed up MIME types and the file extensions were not such that the upload script could figure out what you uploaded.Finally, any such error report is mostly useless if you do not include the version of Prestshop you are talking about. Cheers Link to comment Share on other sites More sharing options...
ukbaz Posted September 7, 2009 Share Posted September 7, 2009 Codegrunt - Open source carts are widely available, and have used several before - the vast majority of which come with considerably more detailed documentation than is available for Prestashop. Unless you have access to a source other than those available on this forum.I have no axe to grind with the product - indeed it was meant to be constuctive criticism - I am not the first to have voiced this view, and doubt whether I shall be the last.Any software that seeks to become mainstream must inevitably have thorough documentation - and perhaps a poll of how adequate the majority of users view the current state of this would be useful.Baz Link to comment Share on other sites More sharing options...
cercamon Posted April 28, 2010 Share Posted April 28, 2010 Actually I was stuck not being able to attach docs larger than 2M (even I have setup my PHP upload limits higher enough)...Editing the $maxFileSize in the ADMIN_FOLDER/tabs/AdminAttachments.php did the trick. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts