@param from  a container to which it was attached
@param to  a container to which it will be attached
@param selectedFileIds  IDs of attachments to be moved
@return the number of attachments which was moved to another container