Your ROOT_URL in app.ini is http://git.osmesh.ru/ but you are visiting http://91.221.70.94:3000/MOS/OpenBoard/commit/cd010590edd98ed6c2bcab950558a6df312d6897?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
6 additions and
3 deletions
src/board/UBBoardController.cpp
src/core/UBPersistenceManager.cpp
@ -1132,7 +1132,7 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri
QString destFile ;
QString destFile ;
bool b = UBPersistenceManager : : persistenceManager ( ) - > addFileToDocument ( selectedDocument ( ) ,
bool b = UBPersistenceManager : : persistenceManager ( ) - > addFileToDocument ( selectedDocument ( ) ,
" " ,
sourceUrl . toString ( ) ,
UBPersistenceManager : : videoDirectory ,
UBPersistenceManager : : videoDirectory ,
uuid ,
uuid ,
destFile ,
destFile ,
@ -1175,7 +1175,7 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri
QString destFile ;
QString destFile ;
bool b = UBPersistenceManager : : persistenceManager ( ) - > addFileToDocument ( selectedDocument ( ) ,
bool b = UBPersistenceManager : : persistenceManager ( ) - > addFileToDocument ( selectedDocument ( ) ,
" " ,
sourceUrl . toString ( ) ,
UBPersistenceManager : : audioDirectory ,
UBPersistenceManager : : audioDirectory ,
uuid ,
uuid ,
destFile ,
destFile ,
@ -913,6 +913,7 @@ bool UBPersistenceManager::addFileToDocument(UBDocumentProxy* pDocumentProxy,
QString & destinationPath ,
QString & destinationPath ,
QByteArray * data )
QByteArray * data )
{
{
QAssert ( path . length ( ) ) ;
QFileInfo fi ( path ) ;
QFileInfo fi ( path ) ;
if ( ! pDocumentProxy | | objectUuid . isNull ( ) )
if ( ! pDocumentProxy | | objectUuid . isNull ( ) )
@ -920,6 +921,8 @@ bool UBPersistenceManager::addFileToDocument(UBDocumentProxy* pDocumentProxy,
if ( data = = NULL & & ! fi . exists ( ) )
if ( data = = NULL & & ! fi . exists ( ) )
return false ;
return false ;
qDebug ( ) < < fi . suffix ( ) ;
QString fileName = subdir + " / " + objectUuid . toString ( ) + " . " + fi . suffix ( ) ;
QString fileName = subdir + " / " + objectUuid . toString ( ) + " . " + fi . suffix ( ) ;
destinationPath = pDocumentProxy - > persistencePath ( ) + " / " + fileName ;
destinationPath = pDocumentProxy - > persistencePath ( ) + " / " + fileName ;