customize file upload system

  • Posts: 120
  • Thank you received: 2
6 years 10 months ago #285493

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.x

Hi dear
I need customize hikashop file upload system for my custom project. I checked hikashop admin folders and find process file upload method on this path:
administrator/components/com_hikashop/helpers/upload.php and method process.
In method process file uploaded temporary in folder now my question it is: which method control file save and file delete?
I need control delete and save file all time.
thank you

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
6 years 10 months ago #285496

Hello,

which method control file save and file delete?

None.

The upload helper is a file to handle the uploads made with the drag'n'drop ajax system.
But there is nothing in the helper to save or delete anything ; and I don't understand what you're talking about since there is no "delete" action with the upload system.

regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 120
  • Thank you received: 2
6 years 10 months ago #285661

Thank you dear Jerome
i know upload work with drag'n'drop but if we not click save button in action toolbar Not done completely and if click cancel button in toolbar the temporary file not save in the folder and remove file from folder or when confirm deletion and not click save button the process is not completely. now I want found which method control delete or save. I hope you understand what I mean :)
thank you

Attachments:
Last edit: 6 years 10 months ago by kaya.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
6 years 10 months ago #285666

Hi,

The files saving / deleting is done in administrator/components/com_hikashop/classes/file.php

The save button of the products is controlled in the file administrator/components/com_hikashop/classes/product.php in the function backSaveForm

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

Time to create page: 0.067 seconds
Powered by Kunena Forum