Comments (9)
I opened a PR with a fix wordpress-mobile/WordPress-iOS#22025
from gutenberg-mobile.
Couldn't reproduce it on
- iPhone 13, iOS 16.6.1
- iPad, iPadOS 17.0
from gutenberg-mobile.
I was able to reproduce with:
- iPhone 15 in Simulator running iOS 17
- Built using Xcode 15
- Built from this WPiOS commit (currently
trunk
)
I can also confirm that uploading media in the WPiOS app via the "Media" view (outside the editor), there were no issues.
from gutenberg-mobile.
I was able to reproduce on an iPhone SE running iOS 16.6.1, but with a slightly different experience:
- Upload gif and hit "Publish"
- Returns to Posts screen and the post hangs indefinitely in drafts with the upload progress bar around ~95%
I did not see the "Uploading Media" dialog like in the video above, but it is present in the draft post:
from gutenberg-mobile.
Replicated the same behavior above when debugging locally. The error output so far:
2023-11-10 10:20:18:533 WordPress[98177:18989117] Could not find image file:///Users/derekblank/Library/Developer/CoreSimulator/Devices/3F6F476A-9B9B-4577-A96F-146E73030824/data/Containers/Data/Application/715E9599-AF41-4469-BF48-85041FBE4617/tmp/-466378314.png
2023-11-10 10:20:18:584 WordPress[98177:18970961] Unable to download image for attachment with url = Optional(http://localhost:8081/symbolicate). Details: Optional("The operation couldn’t be completed. (WordPress.ImageDownloaderError error 0.)")
2023-11-10 10:20:18:636 WordPress[98177:18970961] Unable to download image for attachment with url = Optional(https://i0.wp.com/localhost:8081/assets/gutenberg/node_modules/react-native/Libraries/LogBox/UI/LogBoxImages/close.png?platform=ios&hash=369745d4a4a6fa62fa0ed495f89aa964?quality=80&w=16). Details: Optional("The operation couldn’t be completed. (WordPress.ImageDownloaderError error 0.)")
2023-11-10 10:20:18:646 WordPress[98177:18992108] Failed to get size for image file:///Users/derekblank/Library/Developer/CoreSimulator/Devices/3F6F476A-9B9B-4577-A96F-146E73030824/data/Containers/Data/Application/715E9599-AF41-4469-BF48-85041FBE4617/tmp/-466378314
2023-11-10 10:20:18:652 WordPress[98177:18970961] Unable to download image for attachment with url = Optional(http://localhost:8081/symbolicate). Details: Optional("The operation couldn’t be completed. (WordPress.ImageDownloaderError error 0.)")
from gutenberg-mobile.
Possibly related:
from gutenberg-mobile.
Further investigation details:
- When adding the GIF on iOS, the file actually uploads successfully to the server, a valid URL is created, and the GIF appears in WordPress Media Library.
- When running locally, warnings are thrown from
RNImage.getSize
in the native Image component here:Failed to get size for image
. - When uploading a GIF, there are two image files created and returned from the server: the animated GIF, and a static image from the first frame.
- On Android, (where the GIF uploads successfully), the static image of the GIF is displayed in the Editor Image Block as a preview. Tapping on this static image displays the animated GIF. (Video example below.) On iOS, it's the opposite: the animated GIF is displayed in the Image Block, and tapping it displays the static file. On iOS It seems like the static and animated image URLs are inverted somehow.
- It's not possible to publish a post with a GIF on iOS. Even after removing an Image block that contained a GIF, it is still not possible to publish the post. There is likely something that is triggered in the state of the Image component that prevents this.
Android (working) | iOS (not working) |
---|---|
Screen_Recording_20231110_135827_Jetpack.mov |
iOS.mov |
from gutenberg-mobile.
I'm currently debugging but wanted to share that we recently changed quite a few things related to Media over WordPress iOS.
So far what I'm seeing is that for local GIFs, the progress value never reaches 1.0
when they're actually successfully uploaded. For GIFs uploaded from the free library, they do reach that value and are marked as uploaded
correctly.
from gutenberg-mobile.
RCA
ItemProviderMediaExporter
doesn't contribute progress to the overall uploads progress when it comes to GIFs
from gutenberg-mobile.
Related Issues (20)
- [Android] Media Upload progress bar does not increment HOT 2
- Excerpts shows the VideoPress URL for VideoPress v5
- Empty state when using source URL of VideoPress vide in v5 block
- VideoPress v5: Plays inline setting not saving for Atomic sites w/o VideoPress HOT 1
- Support HTML anchors HOT 3
- Cover block: Videos can't be played in private sites
- Add ability to transform video block to VideoPress
- VideoPress v5: Investigate cases where app markup differs to the web
- Long delay when saving a post HOT 3
- Editor crashes when the content of a synced pattern is updated HOT 2
- Improve appearance of the File Block
- Unsupported Block Editor: Editor doesn't load on some Atomic sites on Android HOT 2
- TypeError: Cannot read property 'label' of undefined HOT 2
- TypeError: Cannot read property 'trim' of undefined HOT 3
- TypeError: Cannot read property 'name' of null HOT 3
- TypeError: Cannot read property 'scrollToEnd' of null HOT 1
- TypeError: Cannot set property 'block' of undefined HOT 1
- 'RNTAztecView/RNTAztecView.h' file not found HOT 1
- Remove deprecated defaultProps from function components for React 18.3
- Add AI assistant
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gutenberg-mobile.