diff --git a/content/pages/edit.json b/content/pages/edit.json index 895b0f68e..59d901dbb 100644 --- a/content/pages/edit.json +++ b/content/pages/edit.json @@ -33,7 +33,8 @@ "name": "links", "label": "Sample file", "placeholder": "e.g. https://file.com/samplefile.json", - "help": "Please provide a URL to a sample of your data set file. This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing.", + "help": "Please provide a URL to a sample of your data set file. This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**", + "prominentHelp": true, "type": "files" }, { diff --git a/content/publish/form.json b/content/publish/form.json index 6556d6473..4b6b1ef02 100644 --- a/content/publish/form.json +++ b/content/publish/form.json @@ -104,7 +104,8 @@ "name": "files", "label": "File", "placeholder": "e.g. https://file.com/file.json", - "help": "Please enter the URL to your data set file and click \"ADD FILE\" to validate the data. This URL will be stored encrypted after publishing. For a compute data set, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size.", + "help": "This URL will be stored encrypted after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.** For a compute data set, your file should match the file type required by the algorithm, and should not exceed 1 GB in file size. ", + "prominentHelp": true, "type": "files", "required": true }, @@ -112,7 +113,8 @@ "name": "links", "label": "Sample file", "placeholder": "e.g. https://file.com/samplefile.json", - "help": "Please enter the URL to a sample of your data set file and click \"ADD FILE\" to validate the data. This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing.", + "help": "This file should reveal the data structure of your data set, e.g. by including the header and one line of a CSV file. This file URL will be publicly available after publishing. **Please make sure that the endpoint is accessible over the internet and is not protected by a firewall or by credentials.**", + "prominentHelp": true, "type": "files" }, { diff --git a/src/components/@shared/FormFields/FilesInput/Info.tsx b/src/components/@shared/FormFields/FilesInput/Info.tsx index 6be397a07..1971760f5 100644 --- a/src/components/@shared/FormFields/FilesInput/Info.tsx +++ b/src/components/@shared/FormFields/FilesInput/Info.tsx @@ -3,7 +3,6 @@ import { prettySize } from './utils' import cleanupContentType from '@utils/cleanupContentType' import styles from './Info.module.css' import { FileMetadata } from '@oceanprotocol/lib' -import Alert from '@shared/atoms/Alert' export default function FileInfo({ file, @@ -16,11 +15,6 @@ export default function FileInfo({ ? cleanupContentType(file.contentType) : null - // Prevent accidential publishing of error pages (e.g. 404) for - // popular file hosting services by warning about it. - // See https://github.com/oceanprotocol/market/issues/1246 - const shouldWarnAboutFile = file.valid && contentTypeCleaned === 'html' - return (