Index: /trunk/include/ws_functions.inc.php
===================================================================
--- /trunk/include/ws_functions.inc.php	(revision 12730)
+++ /trunk/include/ws_functions.inc.php	(revision 12739)
@@ -2428,5 +2428,4 @@
 
   $info_columns = array(
-    'file',
     'name',
     'author',
@@ -2464,4 +2463,15 @@
   }
 
+  if (isset($params['file']))
+  {
+    if (!empty($image_row['storage_category_id']))
+    {
+      new PwgError(500, '[ws_images_setInfo] updating "file" is forbidden on photos added by synchronization');
+      exit();
+    }
+
+    $update['file'] = $params['file'];
+  }
+
   if (count(array_keys($update)) > 0)
   {
