Interface S3Service

  • All Known Implementing Classes:
    S3ServiceImpl

    @Deprecated
    public interface S3Service
    Deprecated.
    This service has been replaced with AwsS3Service
    Service that provides access to AWS S3 to upload files.
    Author:
    joseross
    • Method Detail

      • uploadFile

        S3Output uploadFile​(String site,
                            String profileId,
                            String filename,
                            InputStream content)
                     throws AwsException,
                            org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
        Deprecated.
        Requests the file upload using the specified S3Profile.
        Parameters:
        site - the site
        profileId - the id of the S3Profile to use.
        filename - the name of the file to upload
        content - the file itself
        Returns:
        metadata of an AWS S3 upload
        Throws:
        AwsException - if an error occurs
        org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException - if the profile is not found