0

I am a beginner in nopCommerce 2.30. There is no Fileupload Control version 2.30.

I want to use Fileupload Control in nopCommerce 2.30. Last day I download the

nopCommerce 2.65. Fileupload Control avilable in nopCommerce 2.65. I changes the

source code 2.30 for implement FileUpload control (reference on 2.6).

Fileupload control rendered succssfully in browser.

enter image description here

but when I upload a file it's shown a erroe message Please see the Images.

enter image description here

I and include the UpdateFileProductAttribute function in ShoppingCartController in

nopCommerce 2.30 and debug the entire code. Class CatalogSettings In

FileUploadMaximumSizeBytes Property is always 0. Please see the image enter image description here

And I add the case AttributeControlType.FileUpload: in AddToCartProduct function

in the CatalogController. but this.Request.Files is null. Please see the Image. enter image description here

Is it possible to implement in Fileupload control in nopCommerce 2.30 ?

Please Help

Ragesh P Raju
  • 3,879
  • 14
  • 101
  • 136

2 Answers2

2

Why not go to nopCommerce 2.65?

Greg
  • 359
  • 1
  • 6
  • 1
    Thanks. The existing application in nopCommerce 2.30. I need to implement Fileupload Control in nopCommerce 2.30. Is it possible. – Ragesh P Raju Sep 14 '12 at 05:35
  • 1
    Yes. But if **FileUploadMaximumSizeBytes** is always **0** it is necessarily impossible to upload a file. By default the value is **204,800**. – Greg Sep 14 '12 at 07:50
  • 1
    Thank you for your valueable replay.I debug the code frequantly, I find the FileUploadMaximumSizeBytes is save in the Database ( in nopCommerce 2.65). I create new record in database ( in nopCommerce 2.30 ) "Settings" table create new field name = catalogsettings.fileuploadmaximumsizebytes and value = 204800. Now the property shows 204800 value. – Ragesh P Raju Sep 14 '12 at 08:35
2

You're almost here. Go to admin area > configuration > all settings. Set value of CatalogSettings.FileUploadMaximumSizeBytes to 204800 (maximum file size in bytes). If the setting does not exist, create it.

P.S. Do not forget to add locales (such as ShoppingCart.MaximumUploadedFileSize)

Andrei M
  • 3,429
  • 4
  • 28
  • 35