Ajax Upload with customer fields - several files - backend problems

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 11 months ago #332738

-- HikaShop version -- : 4.4.2
-- Joomla version -- : 3.9.26
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Firefox 88.0.1

Ajax Upload with customer fields with option for several files in the checkout.

Everything works well - files are uploaded to the save path

But in backend to open them: it is just ONE link for several files and thene the error message is "File not found"

How to reach the uploaded files via backend?

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 11 months ago #332749

Hi,

Could you provide a screenshot of the settings of the custom field (you can edit it via the menu Display>Custom fields) so that we can reproduce the issue on our end ?

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 11 months ago #332750

here it is

Attachments:
Last edit: 2 years 11 months ago by Volker Epting.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 11 months ago #332790

Hi,

Thank you for that. We were able to reproduce the issue and we've added a patch for it.
Download again the install package of the latest HikaShop version on our website and install it on yours and it will add the patch for that.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 11 months ago #332801

Sorry, It is not working...

Package: com_hikashop_business_v4.4.2_2021-05-21_08-02-24.tar.gz

Upload 1 pdf-file - Yes
Upload 2 pdf-files - No
Upload 3 pdf-files - No

More than two files don't appear in the backend / in the order

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 11 months ago #332803

Hi,

That's strange. It's working fine on my end with the patch:
i.imgur.com/G7LSDZO.png
Then I think we'll have to look directly at the situation on your website to check what's going on.
Could you provide a backend access, a FTP access and the order number we can check on your website so that we can look at the situation and see if your case needs another patch ?
If so, you can provide that via our contact form with a link to this thread:
www.hikashop.com/support/contact-us.html

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 11 months ago #332902

Hi,

So I've checked the issue on your website backend and you don't have a display issue for that custom field in the B3R8 order.
You don't see any file listed in the custom field on the order details page because there are no files listed in the database for that address.
What I'm trying to say is that your issue is not with the display of the files there. The issue is apparently during the saving of the address where the custom field files are ignored instead of being added in the database.

So I've looked around and I was able to reproduce the issue when editing an address from a user in the backend interface. I've made another patch for this, which I've added to both the install package on our website and your website with the FTP access you provided.
Now, this won't change anything for the orders / addresses you already have since they don't have the field filled.
To test that it works, you'll have to try again from the start, with a new address (or edit an existing one).
Hopefully, everything should be fine now.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 11 months ago #332920

several tests with orders and files - erverythings seems to be well no

Thanks a lot!

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 9 months ago #334273

All was well, but after an update to hikashop 4.4.3 I am not able to upload more than one file ???

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334279

Hi,

Thank you for your feedback. I've checked again and added another patch to fix the problem.
It came from another patch we made for another issue relative to the upload of files reported by someone else in the meantime.
It should be all good now.
Download the install package of the latest HikaShop on our website and install it on yours and you'll get the patch.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 9 months ago #334291

new version installed, but the problem remains

I try to upload two files:
first file is in the upload, adding a second file: first file is gone and replaced - with the second - so theree seems to be just an upload of one file

?!?!

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334296

Hi,

I'm not able to reproduce the problem on my end anymore with the patch.
However, based on what you're saying and looking at the code, I've improved the patch.
Please try again, it should hopefully work better.

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 9 months ago #334309

I am sorry, but I onlyable to upload just one document.

As soon as I try to add a second, this one is replacing the first...;-(

JoomlaCache empty, Browsercache empty....

-- HikaShop version -- : 4.4.3 8 juilliet
-- Joomla version -- : 3.9.28
-- PHP version -- : 7.4.14
-- Browser(s) name and version -- : Firefox 89.02

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334312

Hi,

Could you provide a precise step by step instructions of what to do to reproduce the issue, and provide a backend access and a FTP access via our contact form ( www.hikashop.com/support/contact-us.html ) along with a link to this thread for reference, so that we could directly check the issue there ?

Please Log in or Create an account to join the conversation.

  • Posts: 31
  • Thank you received: 2
  • Hikashop Business
2 years 9 months ago #334332

Sorry for wasting your time: The option for "multiple files" was set to "no" ( I don't know why) ...

Erverything is well"

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
2 years 9 months ago #334359

Hi,

No worries, you saved me precious time by figuring it out before I had to dive in the code on your website.

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum