Download issue from FTP server

You have a question or need an advice about how to do something? Ask it here!
Post Reply
claudius06
Posts: 174
Joined: 25 Nov 2023 09:23
Download issue from FTP server

Post by claudius06 »

Hello Bernd,
I need to set up a new ready-to-broadcast program provider. My access works fine with FileZilla but not on ProppFrexx.

My access details are as follows:
- Host: ftp.abc-provider.com
- Login: [email protected]
- Password: Abcd123456789

I want to download the remote content located in the directory:
"Radio Show"

Inside this directory, there’s a subfolder:
"pad 4 x 15 min"

Inside it, there are 4 files named:
- "John Doe - Radio Show - Number 1.mp3"
- "John Doe - Radio Show - Number 2.mp3"
- "John Doe - Radio Show - Number 3.mp3"
- "John Doe - Radio Show - Number 4.mp3"

As you can see, there are many spaces.

Here’s my script example for the first of the 4 MP3 files:

Code: Select all

ftp://ftp1234%[email protected]/Radio%20Show/pad%204%20x%2015%20min/John%20Doe%20-%20Radio%20Show%20-%20Number%201.mp3|F:\Shows\RadioShow|[email protected]|Abcd123456789
For the file download path, I copied it from FileZilla by right-clicking and selecting "Copy URL to clipboard".

My questions:
1. Do you think the way I’m handling spaces is causing the issue?
2. Can ProppFrexx work with all FTP servers?

Thank you for your help.
Claude.
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Download issue from FTP server

Post by radio42 »

Please try the following control-command, if you want to download a file from within ProppFrexx:
(see the user manual appendix regarding the EXEC_DOWNLOAD_FILE command - which is not a full replacement of a complete ftp client)

Code: Select all

EXEC_DOWNLOAD_FILE ftp://ftp.abc-provider.com/pad 4 x 15 min/John Doe - Radio Show - Number 1.mp3|F:\Shows\RadioShow\File1.mp3|[email protected]|Abcd123456789
The general syntax of the EXEC_DOWNLOAD_FILE command is: <sourceUrl>|<targetFile>|<username>|<password>
<sourceUrl> : denotes the full URL of the source file

And yes, so far all users could work with all their ftp servers. So I can not say, if ProppFrexx can work with all FTP servers, but so far I assume yes.
claudius06
Posts: 174
Joined: 25 Nov 2023 09:23
Re: Download issue from FTP server

Post by claudius06 »

Thank you for your response.
I tested the script following your recommendations, but it's still not working.
I enabled debug mode and got the following output: (after the line DispatchCommand: EXEC UPLOAD FILE ftp:// ...)

Code: Select all

15/04/2025 19:01:00: DispatchCommand Reply: OK
15/04/2025 19:01:00: System.UriFormatException
Invalid URI: Invalid port specified.
   at ev.bX.jX8A(Object  , FirstChanceExceptionEventArgs  )
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at ProppFrexx.RemoteControl.CommandDispatcher.<>c__DisplayClass49_10.F89s()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
If I understand correctly, it seems to be a port issue. On FileZilla, the port for this server is the usual 21. What do you think?
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Download issue from FTP server

Post by radio42 »

But why are you using EXEC_UPLOAD_FILE and not EXEC_DOWNLOAD_FILE ?? - two commands and two different syntax. So that might explain your incorrect UriFormat.
Please PM me your exact command you are trying and all your exact credentials and file names and I can PM you back the correct command.

Do you want to download a file or upload a file?
In your post above you said you want to download a file!
claudius06
Posts: 174
Joined: 25 Nov 2023 09:23
Re: Download issue from FTP server

Post by claudius06 »

I can't believe it! I was so focused on the script that I never even looked at the command! Following your question, I obviously changed the command — and of course, it works like a charm. I'm so Sorry for this error, and thank you for your time.

Post Reply