Fixed resource id
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@147139 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
62135a892d
commit
4360d8ff67
|
@ -10038,11 +10038,19 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements
|
|||
+ mimeType + " ,folder: " + saveResourceSession.getItemId()
|
||||
+ "]");
|
||||
|
||||
FilesStorage storage = new FilesStorage();
|
||||
storage.createItemOnWorkspaceByStorageId(storageId,
|
||||
serviceCredentials.getUserName(), fileName,
|
||||
saveResourceSession.getFileDescription(), mimeType,
|
||||
saveResourceSession.getItemId());
|
||||
if (storageId.startsWith("http:") || storageId.startsWith("https:")) {
|
||||
FilesStorage storage = new FilesStorage();
|
||||
storage.createItemOnWorkspace(storageId,
|
||||
serviceCredentials.getUserName(), fileName,
|
||||
saveResourceSession.getFileDescription(), mimeType,
|
||||
saveResourceSession.getItemId());
|
||||
} else {
|
||||
FilesStorage storage = new FilesStorage();
|
||||
storage.createItemOnWorkspaceByStorageId(storageId,
|
||||
serviceCredentials.getUserName(), fileName,
|
||||
saveResourceSession.getFileDescription(), mimeType,
|
||||
saveResourceSession.getItemId());
|
||||
}
|
||||
}
|
||||
|
||||
protected void saveResourceByInputStream(
|
||||
|
|
Loading…
Reference in New Issue