Open mittus opened 5 years ago
I can't remember why I did this. Did you tested it on install in a subdirectory, does it work?
If I remember correctly, the full URL is generated on runtime, is not static, and isn't stored anywhere. It's only used when displaying images via the file upload field, and does not depend on your environment.
I can't remember why I did this. Did you tested it on install in a subdirectory, does it work?
Yes, with subdirectory my variant dosen't work. But I fix that with global variable $SITEURL
, and now it work with all sites:
If I remember correctly, the full URL is generated on runtime, is not static, and isn't stored anywhere. It's only used when displaying images via the file upload field, and does not depend on your environment.
Yes, its true. But I will need get this url to the "input" on my project. I would copy this url, and pasting it, when it needed, into the wysiwyg redactor:
Unfortunately, I have no way to test your efforts, but I will try to take the time next week to do that.
If you want, you can use this construct temporarily:
return IM_SITE_URL.'data/uploads/imanager/';
$SITEURL
as a constant IM_SITE_URL
in _def.php, so we don't have to change it in different places.Thank you for your effort!
Hello!!
I was problem with image url's in file upload fields.
I need get absolute image urls without domain name. For that I added new input after Title input:
But I seen bad urls:
Then I loock to the function in the UploadHandler.php and see that:
When I use this short url, all functions on fileupload field work's correct: Then I got truthful urls:
I use short abs. urls anywhere, because I am working with git and has a problems with urls in local/production projects.
Is it possible to take this into the plugin?