The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Audio in html, Permission Denied
Zap Driver
post Dec 28 2021, 10:25 PM
Post #1





Group: Members
Posts: 2
Joined: 28-December 21
Member No.: 28,207



Hi all , I'm new both in this forum and in the coding world

As always I'm not sure where to post this topic...

I'm using WinSCP to transfer files from the PC to the Host

But then an error occurred , see attached photo

IPB Image

Thank you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Dec 29 2021, 10:50 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,216
Joined: 9-August 06
Member No.: 6



Have you tried several times?

I'm not familiar with WinSCP. I'm just guessing here, but did you try what's suggested in the error message, to turn the transfer resume option off?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Zap Driver
post Dec 29 2021, 02:21 PM
Post #3





Group: Members
Posts: 2
Joined: 28-December 21
Member No.: 28,207



I have tried several times, and several things...

I have deleted, re-named and re-converted even without metadata
(I took a video from YT, you know for "Testing Purposes"!)
but to no avail.

I have looked for the "Transfer resume support" button in
"Options" + "Preferences" but found none.

the original sound file was an mp4,
and this did not receive any error message

I know that the html itself has nothing to do with the file transfer,
but I'll show you the HTML anyway

---------------------------------------------------------------------------------------

(A sound box appears on the Homepage, but is't greyed out)

<!DOCTYPE html>
<html lang="en" dir="ltr">
...<head>
........<meta charset="utf-8">
........<title>Sound</title>
...</head>
.......<body>
..........<audio style="width: 100%;" controls autoplay>
..........<source src="Music/Audio_Test_File.mp3" type="audio/*mpeg" </audio>
.......</body>
</html>

-----------------------------------------------------------------------------------------

This part of the script I got from the Internet
<audio style="width: 100%;" controls autoplay>
<source src="Music/Audio_Test_File.mp3" type="audio/*mpeg" </audio>

---------------------------------------------------------------

This part of the script was Auto created by Atom HTML Editor which I use:

<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Sound</title>
</head>
<body>
</body>
</html>

----------------------------------------------------------------------------

WinSCP (Windows Secure Copy) is a free and open-source SSH File Transfer Protocol (SFTP), File Transfer Protocol (FTP), WebDAV, Amazon S3, and secure copy protocol (SCP) client for Microsoft Windows. Its main function is secure file transfer between a local computer and a remote server. Beyond this, WinSCP offers basic file manager and file synchronization functionality. For secure transfers, it uses the Secure Shell protocol (SSH) and supports the SCP protocol in addition to SFTP.

--------------------------------------------------------------------------

Thank you.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Dec 30 2021, 12:25 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,458
Joined: 31-August 06
Member No.: 43



The message in the box is presumably the return from SFTP on the host; so "Permission denied" should mean that there is some file permissions problem on the server. Who is hosting the server? They should give you some sort of access, through a "control panel" or similar, and you need to use that to look at the Music directory in your web files, and see why it would not be possible to rename as Audio_Test_File.mp3. Perhaps the file exists already, with no write permission...? How big is the audio file?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Zap Driver
post Dec 30 2021, 12:49 AM
Post #5





Group: Members
Posts: 2
Joined: 28-December 21
Member No.: 28,207



I think this explains it:

Upload file size limit 15 MiB
Forbidden files .htacl, .htaclu, .avi, .mov, .mp2, .mp3, .mpeg, .ram, .asf, .quota, .vbs, .shs, .scr, .exe, .cmd, .torrent, .wmv, .wma, .rm, .zip, .rar, .gz, .tgz
File backup No
Hotlinking protection Yes
FTP simultaneous transfers 2

I use Awardspace for now.

mp4 is Ok though
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Dec 30 2021, 08:13 AM
Post #6


Jocular coder
********

Group: Members
Posts: 2,458
Joined: 31-August 06
Member No.: 43



QUOTE(Zap Driver @ Dec 30 2021, 02:49 PM) *

I think this explains it...

Forbidden files .htacl, .htaclu, .avi, .mov, .mp2, .mp3, .mpeg, .ram, .asf, .quota, .vbs, .shs, .scr, .exe, .cmd, .torrent, .wmv, .wma, .rm, .zip, .rar, .gz, .tgz

...[??] mp4 is Ok though


Well, on the face of it you are trying to upload something.mp3, and your free hosting service says you can't host a file called anything.mp3, so it returns a forbidden error. What could be clearer?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 4th October 2022 - 08:59 AM