problem with remository/joomgallery and upload file
- marcoz
- Topic Author
- Offline
- New Member
- marcoz
- Topic Author
- Offline
- New Member
15 years 10 months ago - 15 years 10 months ago #3687
by marcoz
hello,
after little test i found a solution for this problem...
The problems occur if the link in the <form action"" is traslate in sef url by sefRelToAbs or JRoute::_
For Remository the solution is this:
Open file file v-classes/remositoryAddFileHTML.php and find Line 102:and replace with:
for joomgallery:
open file includes/html/joom.userpanel.html.php and find:
For edit file find Line 648:and replace with:
For upload file find line 519:
and replace with:
after little test i found a solution for this problem...
The problems occur if the link in the <form action"" is traslate in sef url by sefRelToAbs or JRoute::_
For Remository the solution is this:
Open file file v-classes/remositoryAddFileHTML.php and find Line 102:
$formurl = remositoryRepository::RemositoryBasicFunctionURL('savefile');
$item = JRequest::getVar('Itemid','');
$formurl = JURI::root().'index.php?option=com_remository&Itemid='.$item.'&func=savefile';
for joomgallery:
open file includes/html/joom.userpanel.html.php and find:
For edit file find Line 648:
<form action = "<?php echo sefRelToAbs('index.php?option=com_joomgallery&func=savepic'._JOOM_ITEMIDX); ?>" method="post" name="adminForm"
enctype="multipart/form-data" onsubmit="return joom_checkme2();" >
<form action = "<?php echo JURI::root(); ?>index.php?option=com_joomgallery&func=savepic<?php echo _JOOM_ITEMIDX; ?>" method="post" name="adminForm" enctype="multipart/form-data" onsubmit="return joom_checkme2();" >
For upload file find line 519:
<form action="<?php echo sefRelToAbs('index.php?option=com_joomgallery&func=uploadhandler'._JOOM_ITEMIDX); ?>" method="post" name="adminForm" enctype="multipart/form-data" onsubmit="return joom_checkme()" >
and replace with:
<form action="<?php echo JURI::root(); ?>index.php?option=com_joomgallery&func=uploadhandler<?php echo _JOOM_ITEMIDX; ?>" method="post" name="adminForm" enctype="multipart/form-data" onsubmit="return joom_checkme()" >
Last Edit: 15 years 10 months ago by marcoz.
Please Log in or Create an account to join the conversation.
- counterpoint
- Offline
- New Member
Less
More
- Thank you received: 0
15 years 9 months ago #3832
by counterpoint
As the developer of Remository, I have an interest in this topic! The last post is not truly a solution, since all it is doing is bypassing the SEF operation and creating a non-SEF link to evade the problem.
So what is going on? At first sight, I'm inclined to deny responsibility for anything that works correctly when SEF is not applied. But you never know, it might be my fault. Although I'm running SEF Advance on my test site at j15.joomlaguru.net I have never seen this problem (although I just uploaded a file today). So I don't really have anything to go on.
How can this possible problem be further analysed?
So what is going on? At first sight, I'm inclined to deny responsibility for anything that works correctly when SEF is not applied. But you never know, it might be my fault. Although I'm running SEF Advance on my test site at j15.joomlaguru.net I have never seen this problem (although I just uploaded a file today). So I don't really have anything to go on.
How can this possible problem be further analysed?
Please Log in or Create an account to join the conversation.