Sure, but I need this capability on arcgis server enterprise (which is available for hosted portal services). Because one of the pitfalls is that attachments in popups in apps are not visible as pictures with the newest js api, but just as empty thumbnails...