---
title: "Skriva över..."
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/96518-skriva-över"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Greven"
published: "2004-02-03T21:25:20.000Z"
updated: "2004-02-03T21:30:16.000Z"
replies: 1
views: 226
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/asp/96518-skriva-över"
---

# Skriva över...

## #1 — Greven, 2004-02-03T21:25Z

Går det att skriva över en fil i aspupload? 

Alltså uppdatera en fil :)

Permalänk: https://www.webforum.nu/p/96518

## #2 — cyprys, 2004-02-03T21:30Z

> **www.aspupload.com skrev:**
>
> By default, AspUpload overwrites existing files in the upload directory. In a multi-user environment, this is undesirable, as multiple users may upload files with the same name.
> 
>     AspUpload can be configured to generate unique names for the files being uploaded to prevent overwriting existing files in the upload directory. This is done by setting UploadManager's OverwriteFiles property to False before calling Upload.Save, as follows:
> 
>     Upload.OverwriteFiles = False
> 
>     To prevent name collisions, AspUpload appends the original file name with an integer number in parentheses. For example, if the file MyFile.txt already exists in the upload directory, and another file with the same name is being uploaded, AspUpload will save the new file under the name MyFile(1).txt. If more copies of MyFile.txt are uploaded, they will be saved under the names MyFile(2).txt, MyFile(3).txt, etc.

Permalänk: https://www.webforum.nu/p/1268603

---

Tråden på webben: https://www.webforum.nu/amne/asp/96518-skriva-över
