Automattic / wc-calypso-bridge

20 stars 4 forks source link

Woo Express: Trial - "Sorry you are not allowed to upload this file type" when uploading a video in Gutenberg #1090

Open masperber opened 1 year ago

masperber commented 1 year ago

Describe the bug

Woo Express: Trial customers are allowed to upload one video to their site. However, uploading videos from the Gutenberg editor is not currently possible. When attempting to upload a video in Gutenberg, customers will get the following message:

Sorry you are not allowed to upload this file type

There is no indication that one video is allowed to be uploaded through the Media Library, nor is there an indication that upgrading to a paid plan will allow uploading videos.

Expected behavior

One video should be allowed to be uploaded either through the Media Library or through Gutenberg. After one video has been uploaded, Gutenberg and the Media Library should both display a nudge to upgrade if the customer attempts to upload another video instead of simply saying

Sorry you are not allowed to upload this file type

Steps to reproduce

  1. Create a Woo Express: Trial site
  2. Open any page or post in the Gutenberg editors
  3. Add any block that accepts a video, such as a Video or Cover Block
  4. Try to upload a video

WordPress Environment

`

WordPress Environment

WordPress address (URL): https://woo-technically-inspiring-koala.wpcomstaging.com Site address (URL): https://woo-technically-inspiring-koala.wpcomstaging.com WC Version: 7.6.0 REST API Version: ✔ 7.6.0 WC Blocks Version: ✔ 9.8.4 Action Scheduler Version: ✔ 3.5.4 Log Directory Writable: ✔ WP Version: 6.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: ✔

Server Environment

Server Info: nginx PHP Version: 8.0.28 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 7.86.0 OpenSSL/1.1.1n

SUHOSIN Installed: – MySQL Version: 10.4.28-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔

Database

WC Database Version: 7.6.0 WC Database Prefix: wp_ Total Database Size: 5.39MB Database Data Size: 2.79MB Database Index Size: 2.60MB wp_woocommerce_sessions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_abandoned_carts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_automatewoo_customers: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_automatewoo_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_events: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_automatewoo_guests: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_automatewoo_guest_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_automatewoo_log_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_automatewoo_queue: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 1.23MB + Index: 0.06MB + Engine InnoDB wp_postmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_posts: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_bis_activity: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_bis_notifications: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_woocommerce_bis_notificationsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_gc_activity: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cards: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cardsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deploymentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deployments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_prl_frequencies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_tracking_conversions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB

Post Type Counts

attachment: 22 jetpack_migration: 2 page: 10 post: 1 product: 4 revision: 4 wp_global_styles: 2 wp_navigation: 2

Security

Secure connection (HTTPS): ✔ Hide errors from visitors: ✔

Active Plugins (21)

Akismet Anti-Spam: by Automattic – 5.1 AutomateWoo: by WooCommerce – 5.7.2 Crowdsignal Forms: by Automattic – 1.6.7 WordPress.com Editing Toolkit: by Automattic – 3.63212 Gutenberg: by Gutenberg Team – 15.6.1 Jetpack: by Automattic – 12.1-a.7 Layout Grid: by Automattic – 1.8.2 Page Optimize: by Automattic – 0.5.3 Crowdsignal Polls & Ratings: by Automattic Inc. – 3.0.10

WooCommerce Back In Stock Notifications: by WooCommerce – 1.4.3 WooCommerce Brands: by WooCommerce – 1.6.47 WooCommerce Gift Cards: by WooCommerce – 1.15.4 WooCommerce Google Analytics Integration: by WooCommerce – 1.7.1 WooCommerce Min/Max Quantities: by WooCommerce – 4.0.7 WooCommerce Payments: by Automattic – 5.7.0 WooCommerce Product Add-ons: by WooCommerce – 6.2.0 WooCommerce Product Bundles: by WooCommerce – 6.18.4 WooCommerce Product Recommendations: by WooCommerce – 2.2.2 WooCommerce Shipping & Tax: by WooCommerce – 2.2.4 WooCommerce Shipment Tracking: by WooCommerce – 2.3.1 WooCommerce: by Automattic – 7.6.0

Inactive Plugins (10)

Avalara AvaTax: by Avalara – 2.2.0 Classic Editor: by WordPress Contributors – 1.6.3 TaxJar - Sales Tax Automation for WooCommerce: by TaxJar – 4.1.5 WooCommerce Australia Post Shipping: by WooCommerce – 2.5.1 WooCommerce Canada Post Shipping: by WooCommerce – 2.8.0 WooCommerce EU VAT Number: by WooCommerce – 2.8.3 WooCommerce FedEx Shipping: by WooCommerce – 3.7.2 WooCommerce Royal Mail: by WooCommerce – 2.8.0 WooCommerce UPS Shipping: by WooCommerce – 3.4.2 WooCommerce USPS Shipping: by WooCommerce – 4.6.3

Dropin Plugins (2)

advanced-cache.php: advanced-cache.php object-cache.php: Memcached

Must Use Plugins (1)

WP.com Site Helper: by –

Settings

API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5)

Connected to WooCommerce.com: ✔ Enforce Approved Product Download Directories: ✔ Order datastore: WC_Order_Data_Store_CPT

WC Pages

Shop base: #45 - /shop/ Cart: #46 - /cart/ Checkout: #47 - /checkout/ My account: #48 - /my-account/ Terms and conditions: ❌ Page not set

Theme

Name: Tsubaki Version: 1.1.4 Author URL: https://automattic.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔

Templates

Overrides: –

Subscriptions

WCS_DEBUG: ✔ No Subscriptions Mode: ❌ Staging Subscriptions Live URL: Subscriptions-core Library Version: 5.5.0 Subscription Statuses: – WooCommerce Account Connected: ✔ Yes Active Product Key: ❌ No

Store Setup

Country / State: United States (US) — Florida

Subscriptions by Payment Gateway

Payment Gateway Support

Back In Stock

Database Version: 1.4.3 Loopback Test: –

Gift Cards

Database Version: 1.15.4 Loopback Test: – Task Queueing Test: ✔

Product Bundles

Database Version: 6.18.4 Loopback Test: – Template Overrides: –

Admin

Enabled Features: activity-panels analytics coupons customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page

Disabled Features: block-editor-feature-enabled minified-js navigation new-product-management-experience product-variation-management settings

Daily Cron: ✔ Next scheduled: 2023-04-22 17:54:14 -04:00 Options: ✔ Notes: 50 Onboarding: skipped

WooCommerce Payments

Version: 5.7.0 Connected to WPCOM: Yes Blog ID: 218142507 Account ID: -

Action Scheduler

Complete: 25 Oldest: 2023-04-21 13:54:29 -0400 Newest: 2023-04-21 14:12:23 -0400

Failed: 1 Oldest: 2023-04-21 13:54:28 -0400 Newest: 2023-04-21 13:54:28 -0400

Pending: 3 Oldest: 2023-04-21 14:16:10 -0400 Newest: 2023-04-22 13:55:54 -0400

Product Recommendations

Database Version: 2.2.2 Loopback Test: – Task Queueing Test: ✔ Page Cache Test: –

Status report information

Generated at: 2023-04-21 14:16:17 -04:00 `

What plan is active?

Free trial

warrendholmes commented 1 year ago

@manospsyx or @daledupreez I probably missed this decision while I was out, but why do we only allow one video to be uploaded?

manospsyx commented 1 year ago

@warrendholmes I think the aim here was to discourage free-loaders from using WP.com to host files/videos.

warrendholmes commented 1 year ago

@daledupreez Wouldn't the limit on space suffice here?