Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

File Exists on Upload

Featured Replies

Is there a function that will return an error or 1 if the file I want to upload if it already exists?

 

The idea is that if the file exists, I do not want to overwrite it, I want to capture the error or result then give the user the option to rename the file that is going to be uploaded.

 Base Elements has a BE_FileExist()   free plugin

I believe I responded to OP via support ticket today but for the sake of information...

There is not a function in FTPeek that explicitly checks to see if a file exists on the FTP server. However, I believe that you can accomplish this through scripting. You can use the function FTPeek_GetFileList and then iterate through that list checking against the name of the file you are going to upload. If it exists, you can use FTPeek_Rename to rename the remote file or you can rename the file on the local machine. Another way to check would be to try and download a file named the same as the file you are trying to upload. If you don't return a 1 then the file does not exist. Make sure you use this function correctly because you can get other errors that would not result in 1. Also, another downside to this method is that you will download the file if it does exist. I have not tested these methods fully but I believe that they will work. I'm sure that there are other workarounds but there are no explicit and direct way to check for file existence using FTPeek. 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.