Added cache_expires System Setting in AjaxUpload 1.4.0
-
- 79 Posts
After updating to new version, AjaxUpload is creating image path like this (not working):
/var/www/vhosts/xxxxxx.xx/httpdocs/assets/components/ajaxupload/cache/article-2079237-0F4A1D3100000578-75_964x662.jpg
instead of this (working):
/assets/components/phpthumbof/cache/philbib_930_zpscmotzfar.fea5bb792d4dc2f558f49e0d185dc859106.jpg
[ed. note: gordonas last edited this post 8 years, 2 months ago.]
The ajaxupload.cache_expires system setting was never used, because a cache_expires system setting exists. Also a removing not existing images from the queue bug occured. Fixed in 1.4.1
Could it be the MODX session, that is flashed then? If yes, we can't fix anything with this behaviour.
You have to fill the upload queue by Formit2AjaxUpload with a hook running before. The hook running before has to fill the ajaxuploadFieldname field and copy the corresponding file(s) to ajaxuploadTarget.
-
- 79 Posts
MODX session has to do with &ajaxuploadUid and &uid ?
I thought that if I set a unique id for ajaxuploadUid and uid, that was all I need to create a specific queue for each resource.
[ed. note: gordonas last edited this post 8 years, 2 months ago.]
Yes, the upload queue is stored in the MODX session. The queue is there for handling the uploaded files until the form is posted.
After a form post, the files are moved to the ajaxuploadTarget with the AjaxUpload2Formit hook.
If the ajaxuploadFieldname field is filled with a comma separated list of filenames and those files exist in ajaxuploadTarget, the upload queue is filled with Formit2AjaxUpload hook when the form page is shown.