Revision 3ebb88f4 src/gr/grnet/pithos/web/client/FileUploadDialog.java

b/src/gr/grnet/pithos/web/client/FileUploadDialog.java
171 171
					GWT.log(results, null);
172 172
					app.displayError(results);
173 173
				}
174
                app.updateFolder(folder, true, null);
174
				if (app.getSelectedTree().equals(app.getFolderTreeView()))
175
					app.updateFolder(folder, true, null);
176
				else
177
					app.updateOtherSharedFolder(folder, true);
175 178
				hide();
176 179
			}
177 180
		});
......
206 209
            return;
207 210
        }
208 211
        final String fname = getFilename(upload.getFilename());
209
        String apath = app.getApiPath() + app.getUsername() + folder.getUri() + "/" + fname;
212
        String apath = app.getApiPath() + folder.getOwner() + folder.getUri() + "/" + fname;
210 213
        form.setAction(apath);
211 214
        submit.setEnabled(false);
212 215
        upload.setVisible(false);

Also available in: Unified diff