This method works only if your PHP is compiled with cURL.

@see DataBackend::update()
@throws DataBackendIOException
@throws FileException
@throws DownloaderException
962757
public function update()
    {
        $downloader = new Downloader();
        $content = $downloader->downloadContent(self::DOWNLOAD_URI);

        $uriPicker = new FallbackURIPicker();
        $path = $uriPicker->pickURI($content);

        if (strlen($path) > 0 && $path{0} != "/") {
            $path = sprintf("/%s/%s", dirname(self::DOWNLOAD_URI), $path);

        }
        $pathParts = explode('/', $path);
        foreach ($pathParts as $i => $part) {
            switch ($part) {
                case '..':
                    unset($pathParts[$i-1]);
                    // fall-through as the current part ("..") should be removed as well.

                case '.':
                    unset($pathParts[$i]);
                    break;
            }

        }
        $path = implode('/', $pathParts);
        $urlParts = parse_url(self::DOWNLOAD_URI);
        $url = sprintf("%s://%s%s", $urlParts["scheme"], $urlParts["host"], $path);

        // download file
        $file = $downloader->downloadFile($url);

        // Validate file format.
        $validator = new FileValidator();
        $validator->validate($file);

        // blz_20100308.txt is not sorted.
        $parser     = new FileParser($file);
        $lastBankID = $parser->getBankID($parser->getLines());
        if ($lastBankID < 80000000) {
            $this->sortFile($file);

        }

        $this->fileUtil->safeRename($file, $this->parser->getFile());
        chmod($this->parser->getFile(), 0644);
    }
569285
@POST
    @Consumes(MediaType.MULTIPART_FORM_DATA)
    public void updateFromFile(final FormDataMultiPart _multiPart)
    {
        try {
            if (hasAccess()) {
                AbstractRest.LOG.info("===Start of Update via REST===");
                File tmpfld = AppConfigHandler.get().getTempFolder();
                if (tmpfld == null) {
                    final File temp = File.createTempFile("eFaps", ".tmp");
                    tmpfld = temp.getParentFile();
                    temp.delete();
                }
                final File updateFolder = new File(tmpfld, Update.TMPFOLDERNAME);
                if (!updateFolder.exists()) {
                    updateFolder.mkdirs();
                }
                final File dateFolder = new File(updateFolder, ((Long) new Date().getTime()).toString());
                dateFolder.mkdirs();

                final List<InstallFile> installFiles = new ArrayList<>();

                final Iterator<FormDataBodyPart> filePartsIter = _multiPart.getFields("eFaps_File").iterator();
                final Iterator<FormDataBodyPart> revPartsIter = _multiPart.getFields("eFaps_Revision").iterator();
                final Iterator<FormDataBodyPart> datePartsIter = _multiPart.getFields("eFaps_Date").iterator();

                while (filePartsIter.hasNext()) {
                    final FormDataBodyPart filePart = filePartsIter.next();
                    final FormDataBodyPart revPart = revPartsIter.next();
                    final FormDataBodyPart datePart = datePartsIter.next();

                    final BodyPartEntity entity = (BodyPartEntity) filePart.getEntity();
                    final InputStream in = entity.getInputStream();

                    final File file = new File(dateFolder, filePart.getContentDisposition().getFileName());

                    final FileOutputStream out = new FileOutputStream(file);
                    final byte[] buf = new byte[1024];
                    int len;
                    while ((len = in.read(buf)) > 0) {
                        out.write(buf, 0, len);
                    }
                    out.close();
                    in.close();

                    final String ending = file.getName().substring(file.getName().lastIndexOf(".") + 1);

                    final FileType filetype = FileType.getFileTypeByExtension(ending);

                    AbstractRest.LOG.info("= Receieved: '{}'", file.getName());

                    if (filetype != null) {
                        final InstallFile installFile = new InstallFile().setName(file.getName())
                                        .setURL(file.toURI().toURL()).setType(filetype.getType());
                        if (revPart.getValue() != null && !revPart.getValue().isEmpty()) {
                            installFile.setRevision(revPart.getValue());
                        }
                        if (datePart.getValue() != null && !datePart.getValue().isEmpty()) {
                            installFile.setDate(new DateTime(datePart.getValue()));
                        }
                        installFiles.add(installFile);
                    }
                }
                Collections.sort(installFiles, new Comparator<InstallFile>()
                {

                    @Override
                    public int compare(final InstallFile _installFile0,
                                       final InstallFile _installFile1)
                    {
                        return _installFile0.getName().compareTo(_installFile1.getName());
                    }
                });

                if (!installFiles.isEmpty()) {
                    final Install install = new Install(true);
                    for (final InstallFile installFile : installFiles) {
                        AbstractRest.LOG.info("...Adding to Update: '{}' ", installFile.getName());
                        install.addFile(installFile);
                    }
                    install.updateLatest(null);
                }
                AbstractRest.LOG.info("===End of Update via REST===");
            }
        } catch (final IOException e) {
            AbstractRest.LOG.error("IOException", e);
        } catch (final InstallationException e) {
            AbstractRest.LOG.error("InstallationException", e);
        } catch (final CacheReloadException e) {
            AbstractRest.LOG.error("CacheReloadException", e);
        } catch (final EFapsException e) {
            AbstractRest.LOG.error("EFapsException", e);
        }
    }
474115
private void doUpdate() throws PageException, SearchException, IOException {
	// check attributes
	required("index", action, "collection", collection);
	required("index", action, "key", key);

	if (type == -1) type = (query == null) ? SearchIndex.TYPE_FILE : SearchIndex.TYPE_CUSTOM;

	if (type == SearchIndex.TYPE_CUSTOM) {
	    required("index", action, "body", body);
	    // required("index",action,"query",query);
	}
	IndexResult result;

	result = collection.index(pageContext, key, type, urlpath, title, body, language, extensions, query, recurse, categoryTree, category, timeout, custom1, custom2, custom3,
		custom4);
	if (!StringUtil.isEmpty(status)) pageContext.setVariable(status, toStruct(result));
    }
894791
function update () {
      sourceOrOptions.bundle()
        .pipe(concat(function (data) {
          add(filepath, data.toString())
        }))
        .on('error', function (err) {
          console.error(err.stack)
          ASSET_PENDING--
        })
    }
167222
public function update()
    {
        try {
            Option::set(self::LAST_RUN_TIME_OPTION_NAME, Date::factory('today')->getTimestamp());

            $locUrl = Option::get(self::LOC_URL_OPTION_NAME);
            if (!empty($locUrl)) {
                $this->downloadFile('loc', $locUrl);
            }

            $ispUrl = Option::get(self::ISP_URL_OPTION_NAME);
            if (!empty($ispUrl)) {
                $this->downloadFile('isp', $ispUrl);
            }

            $orgUrl = Option::get(self::ORG_URL_OPTION_NAME);
            if (!empty($orgUrl)) {
                $this->downloadFile('org', $orgUrl);
            }
        } catch (Exception $ex) {
            // message will already be prefixed w/ 'GeoIPAutoUpdater: '
            StaticContainer::get(LoggerInterface::class)->error('Auto-update failed: {exception}', [
                'exception' => $ex,
                'ignoreInScreenWriter' => true,
            ]);
            $this->performRedundantDbChecks();
            throw $ex;
        }

        $this->performRedundantDbChecks();
    }
1283467
protected void updateFromResource() {

        setCreationDate(m_resource.getDateCreated());
        int length = m_resource.getLength();
        if (m_resource.isFolder()) {
            length = 1;
        }
        setFileSize(length);
        setModifyDate(m_resource.getDateLastModified());
        setAttributes(m_resource.isFile() ? FileAttribute.Normal : FileAttribute.Directory);
    }
1332938
def _perform_update(self, method, resource, payload):
        '''
        
        '''

        # python2/3 compatibility wizardry
        try:
            file_type = file
        except NameError:
            file_type = IOBase

        if isinstance(payload, (dict, list)):
            response = self._perform_request(method, resource,
                                             data=json.dumps(payload))
        elif isinstance(payload, file_type):
            headers = {
                "content-type": "text/csv",
            }
            response = self._perform_request(method, resource, data=payload,
                                             headers=headers)
        else:
            raise Exception("Unrecognized payload {0}. Currently only list-, dictionary-,"
                            " and file-types are supported.".format(type(payload)))

        return response
648250
private boolean _update(final Identification id) throws IOException, ServletException {

	final File newLucee = downloadCore(id);
	if (newLucee == null) return false;

	if (singelton != null) singelton.reset();

	final Version v = null;
	try {

	    bundleCollection = BundleLoader.loadBundles(this, getFelixCacheDirectory(), getBundleDirectory(), newLucee, bundleCollection);
	    final CFMLEngine e = getEngine(bundleCollection);
	    if (e == null) throw new IOException("can't load engine");
	    version = e.getInfo().getVersion();
	    // engine = e;
	    setEngine(e);
	    // e.reset();
	    callListeners(e);

	    ConfigServer cs = getConfigServer(e);
	    if (cs != null) {
		Log log = cs.getLog("deploy");
		log.info("loader", "Lucee Version [" + v + "] installed");
	    }

	}
	catch (final Exception e) {
	    System.gc();
	    try {
		newLucee.delete();
	    }
	    catch (final Exception ee) {}
	    log(e);
	    e.printStackTrace();
	    return false;
	}

	log(Logger.LOG_DEBUG, "Version (" + v + ")installed");
	return true;
    }
240698
public function update($id){
    
        try {
            $file = $this->file->find($id);            
            $file->filename = Input::get('filename');
            $file->save();

            return response()->json([
                'status' => 'success'
            ]);
        } 

        catch (Exception $e) {
            return $this->handleError($e);
        }
    }
1351831
@Override
    public void update() throws ProponoException {
        if (partial) {
            throw new ProponoException("ERROR: attempt to update partial entry");
        }
        EntityEnclosingMethod method = null;
        final Content updateContent = getContents().get(0);
        try {
            if (getMediaLinkURI() != null && getBytes() != null) {
                // existing media entry and new file, so PUT file to edit-media URI
                method = new PutMethod(getMediaLinkURI());
                if (inputStream != null) {
                    method.setRequestEntity(new InputStreamRequestEntity(inputStream));
                } else {
                    method.setRequestEntity(new InputStreamRequestEntity(new ByteArrayInputStream(getBytes())));
                }

                method.setRequestHeader("Content-type", updateContent.getType());
            } else if (getEditURI() != null) {
                // existing media entry and NO new file, so PUT entry to edit URI
                method = new PutMethod(getEditURI());
                final StringWriter sw = new StringWriter();
                Atom10Generator.serializeEntry(this, sw);
                method.setRequestEntity(new StringRequestEntity(sw.toString(), null, null));
                method.setRequestHeader("Content-type", "application/atom+xml; charset=utf8");
            } else {
                throw new ProponoException("ERROR: media entry has no edit URI or media-link URI");
            }
            getCollection().addAuthentication(method);
            method.addRequestHeader("Title", getTitle());
            getCollection().getHttpClient().executeMethod(method);
            if (inputStream != null) {
                inputStream.close();
            }
            final InputStream is = method.getResponseBodyAsStream();
            if (method.getStatusCode() != 200 && method.getStatusCode() != 201) {
                throw new ProponoException("ERROR HTTP status=" + method.getStatusCode() + " : " + Utilities.streamToString(is));
            }

        } catch (final Exception e) {
            throw new ProponoException("ERROR: saving media entry");
        }
        if (method.getStatusCode() != 201) {
            throw new ProponoException("ERROR HTTP status=" + method.getStatusCode());
        }
    }
1077187
public void updateFile(int fileId, FileUpdate update) {
		getResourceFactory().getApiResource("/file/" + fileId)
				.entity(update, MediaType.APPLICATION_JSON_TYPE).put();
	}
1018687
protected function update()
    {
        DbTable::update($this->db, $this->_tableName, $this->_cols, $this->id);
    }
525268
public function actionUpdate()
    {
        $data = [
            'f1' => $this->getContext()->getInput()->post('p1'),
            'f2' => $this->getContext()->getInput()->post('p2'),
            'id' => $this->getContext()->getInput()->get('id')
        ];

        $this->outputJson($data);
    }
15091
public function update()
    {
        if (!$this->request->is('post')) {
            if ($this->request->is('ajax')) {
                throw new MethodNotAllowedException();
            } else {
                $this->Flash->error($this->invalidRequestMessage);
                $this->redirect(['action' => 'index']);
                return;
            }
        }

        if (empty($this->request->data) && !$this->request->is('ajax')) {
            $this->Flash->warning(__d('wasabi_core', 'There are no permissions to update yet.'));
            $this->redirect(['action' => 'index']);
            return;
        }

        // save the new language positions
        $permissions = $this->GroupPermissions->patchEntities(
            $this->GroupPermissions->find('all'),
            $this->request->data
        );

        /** @var Connection $connection */
        $connection = $this->GroupPermissions->connection();
        $connection->begin();
        foreach ($permissions as $permission) {
            if (!$this->GroupPermissions->save($permission)) {
                $connection->rollback();
                break;
            }
        }

        if ($connection->inTransaction()) {
            $connection->commit();
            Cache::clear(false, 'wasabi/core/group_permissions');
            if ($this->request->is('ajax')) {
                $status = 'success';
                $this->set(compact('status'));
                $this->set('_serialize', ['status']);
            } else {
                $this->Flash->success(__d('wasabi_core', 'All permissions have been saved.'));
                $this->redirect(['action' => 'index']);
                return;
            }
        } else {
            $this->Flash->error($this->dbErrorMessage);
        }
    }
1261378
private void doGetUpdate() throws PageException {
	Struct sct = new StructImpl();
	pageContext.setVariable(getString("admin", action, "returnVariable"), sct);
	URL location = config.getUpdateLocation();
	if (location == null) location = Constants.DEFAULT_UPDATE_URL;

	String type = config.getUpdateType();
	if (StringUtil.isEmpty(type)) type = "manual";

	sct.set("location", location.toExternalForm());
	sct.set("type", type);

    }
531822
public function updateApiURL()
    {
        $this->apiURL  = $this->getEvidenceURL();
        $rowIdentifier = $this->getRecordID();
        if (empty($rowIdentifier)) {
            $rowIdentifier = $this->getRecordCode();
            if (empty($rowIdentifier)) {
                $rowIdentifier = $this->getExternalID();
            }
        }
        if (!empty($rowIdentifier)) {
            $this->apiURL .= '/'.self::urlEncode($rowIdentifier);
        }
        $this->apiURL .= '.'.$this->format;
    }
30480
public function update($dataItem)
    {
        /** @var DataItem $dataItem */
        $dataItem   = $this->create($dataItem);
        $data       = $this->cleanData($dataItem->toArray());
        $connection = $this->getConnection();
        unset($data[ $this->getUniqueId() ]);

        if (empty($data)) {
            throw new \Exception("DataItem can't be updated without criteria");
        }

        $connection->update($this->tableName, $data, array($this->uniqueId => $dataItem->getId()));
        return $dataItem;
    }