You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, it's impossible (or hard) for me to sync files from iWorks (Pages, Numbers, Keynote).
A file (or directory, what it's in fact) created by Pages looks like this:
drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages
In Finder, the suffix is not visible
If I upload this file to my OwnCloud (using the website) and download this file again, I get this output:
-rw-r--r--@ 1 lucas staff 42098 5 Feb 23:03 Test.pages
This is a file (OwnCloud also shows it as a file) and Pages fails to open it. But if I rename it to *.pages.zip and extract it, Pages can open it fine! It's named Test.pages then, but it's possible to remove the *.pages part using Finder and it remains a *.pages file:
drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages <# After renaming to *.pages.zip & extracting
If I use the OS X client to upload the file and download it using the website, I get a *.pages.zip file and after extracting I get this output:
drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages
This is a folder (OwnCloud also shows it as a folder) and Pages opens it just fine.
It also has the *.pages suffix in Finder, which I can remove without problems (I wonder how this is working btw, as 'ls' shows no difference - still *.pages suffix, but nothing in Finder anymore.).
I noticed that Dropbox and Google Drive also have serious problems with the new iWorks format and that this issue might be hard to solve.
Are you saying that if you upload a "test.Pages" file using the web upload, then download it again, it appears as "test.pages" but can't be opened any more with iWorks ?
Thanks for the details.
ownCloud doesn't automatically zip files on upload.
From the "ls" in your first comment it looks like the "Test.pages" on your local computer is in a fact a folder.
drwxr-xr-x@ 8 lucas staff 272 5 Feb 23:03 Test.pages
It looks like the Mac OS makes them look like files and also allows you to upload them using the Web UI, as folders, somehow, even though we don't support folder upload.
When uploading, are you using drag and drop from Finder to the browser or are you using the "Upload" button ?
When using the sync client, since "Test.pages" is a folder, the client will simply upload it as a folder. If you want to download it, it will need to zip it (this is the case for all folders) and provide a download. I don't understand why the downloaded file doesn't have the zip extension.
Maybe Mac OS detects that it's a pages file and tries to remove it ?
I don't think there is much we can do here, it seems that there is some Mac OS magic going on here.
So if I understand well the expected behavior would simply: make the "*.pages" folders appear as a file with a specific icon and prevent the user to navigate into it, correct ?
I don't think it can be done directly with a plugin/app yet.
We currently don't support custom mimetypes / icons for folders, so that's something that would need to be added first.
Only "prevent the user to navigate into such folders" could be done by an app/plugin by overwriting the default action (Open) with a non-operation (do nothing / download)
Does the desktop sync client work correctly ?
Let's say you have two computers, on one you put the "*.pages" folder in the sync dir.
Does it sync correctly to the second computer ?
I'd expect it does.
We see the same thing here. My initial thought was that the .key extension was the issue since Apache has a very different use for files ending in .key. Perhaps if there is a custom MIME type for apache for these files, this would solve the issue? I'm going to test my latest theory by adding a MIME type & a AddHandler directive for these to treat them as zip files. I have one of my Keynote peeps testing that now.
The only way I found is to have a primary repository for my Apple office files (.numbers, .pages, …) and a script in cron which "find" new files and, with new one:
erase all extented attributes
zip these special directories
"rsync" this primary repository to the ownCloud one
If I would to do that directly in ownCloud repository there is a very no-null chance it try to synchronize the repository before my script and erase some files in my Apple pseudo-files… And, as Apple Office Suite save documents automaticaly during it work, there could be a lot of errors.
It's not a solution!
Whith this solution I am sure i can reload my document without missing files with other Mac OS X computer. But, with iPad, it's very difficult to use zip archive with Apple IOS suite.
Ok people here it is. I created custom MIME types in my Apache server's mime.conf and added AddHandler directives for them. I mapped .key to /x-application/zip. So far, the desktop and iPad clients seem fine with it. The only downside is that the apache web server still sees them as folders and not files or more correctly bundles of files so the web interface still isn't 100%.
Apple would have the same problem with it's cloud and/or DropBox ask them…
The new version of iWork's suite come back to normal storage of files: a file, not a directory :-) So we will have no problem to synchronize our Apple iWork's file with ownCloud now!
These good versions are:
Pages v5.5
numbers v3.5
Keynote v6.5
These upgrade came with Yosemite (Mac OS X 10.10)
If you're working in Pages 5.5 or later, Numbers 3.5 or later, or Keynote 6.5 or later and have created a file that is larger than 500 MB, saving it as a package helps the app you're using perform better. By default, these versions of Pages, Numbers and Keynote auto-save files to the hard drive as a single file.
You can switch between a single file and a package at any time. Open your file. Then choose File > Advanced > Change File Type and select the type you'd like to use.1
Choose Keep Single File if:
You plan to send your iWork for Mac document to an non-iCloud Internet service such as iTunes U, Dropbox, Gmail, or another site where you upload files through your web browser.
Activity
PVince81 commentedon Feb 6, 2014
Can someone with a Mac confirm this ? @georgehrke @raghunayyar
PVince81 commentedon Feb 6, 2014
@lucasribic I'm not sure I understand what your problem is and what is expected (I'm not a Mac user). Can you provide simple steps to reproduce the issue and specify expected behavior / actual behavior ? (see https://raw.github.com/owncloud/core/master/issue_template.md)
Are you saying that if you upload a "test.Pages" file using the web upload, then download it again, it appears as "test.pages" but can't be opened any more with iWorks ?
PVince81 commentedon Feb 6, 2014
Thanks for the details.
ownCloud doesn't automatically zip files on upload.
From the "ls" in your first comment it looks like the "Test.pages" on your local computer is in a fact a folder.
It looks like the Mac OS makes them look like files and also allows you to upload them using the Web UI, as folders, somehow, even though we don't support folder upload.
When uploading, are you using drag and drop from Finder to the browser or are you using the "Upload" button ?
When using the sync client, since "Test.pages" is a folder, the client will simply upload it as a folder. If you want to download it, it will need to zip it (this is the case for all folders) and provide a download. I don't understand why the downloaded file doesn't have the zip extension.
Maybe Mac OS detects that it's a pages file and tries to remove it ?
I don't think there is much we can do here, it seems that there is some Mac OS magic going on here.
PVince81 commentedon Feb 6, 2014
So if I understand well the expected behavior would simply: make the "*.pages" folders appear as a file with a specific icon and prevent the user to navigate into it, correct ?
I don't think it can be done directly with a plugin/app yet.
We currently don't support custom mimetypes / icons for folders, so that's something that would need to be added first.
Only "prevent the user to navigate into such folders" could be done by an app/plugin by overwriting the default action (Open) with a non-operation (do nothing / download)
PVince81 commentedon Feb 6, 2014
Does the desktop sync client work correctly ?
Let's say you have two computers, on one you put the "*.pages" folder in the sync dir.
Does it sync correctly to the second computer ?
I'd expect it does.
timrycroft commentedon Feb 21, 2014
Ok it syncs fine but still views online as a folder online. It still corrupts files unfortunately.
30 remaining items
recentcoin commentedon Oct 15, 2014
We see the same thing here. My initial thought was that the .key extension was the issue since Apache has a very different use for files ending in .key. Perhaps if there is a custom MIME type for apache for these files, this would solve the issue? I'm going to test my latest theory by adding a MIME type & a AddHandler directive for these to treat them as zip files. I have one of my Keynote peeps testing that now.
piotr58 commentedon Oct 15, 2014
The only way I found is to have a primary repository for my Apple office files (.numbers, .pages, …) and a script in cron which "find" new files and, with new one:
If I would to do that directly in ownCloud repository there is a very no-null chance it try to synchronize the repository before my script and erase some files in my Apple pseudo-files… And, as Apple Office Suite save documents automaticaly during it work, there could be a lot of errors.
It's not a solution!
Whith this solution I am sure i can reload my document without missing files with other Mac OS X computer. But, with iPad, it's very difficult to use zip archive with Apple IOS suite.
I realy hope someone could find a solution…
recentcoin commentedon Oct 17, 2014
Ok people here it is. I created custom MIME types in my Apache server's mime.conf and added AddHandler directives for them. I mapped .key to /x-application/zip. So far, the desktop and iPad clients seem fine with it. The only downside is that the apache web server still sees them as folders and not files or more correctly bundles of files so the web interface still isn't 100%.
piotr58 commentedon Oct 17, 2014
Ouf!
Apple would have the same problem with it's cloud and/or DropBox ask them…
The new version of iWork's suite come back to normal storage of files: a file, not a directory :-) So we will have no problem to synchronize our Apple iWork's file with ownCloud now!
These good versions are:
These upgrade came with Yosemite (Mac OS X 10.10)
Good news…
PVince81 commentedon Oct 17, 2014
@piotr58 thanks for the info.
CC @MTRichards @craigpg @dragotin @karlitschek see previous comment
LukasReschke commentedon Oct 17, 2014
Yup - they are zipped now:
karlitschek commentedon Oct 17, 2014
Awesome. I'm glad Apple finally come to their senses.
I guess we can finally close this bug now
bafnaparag commentedon Apr 8, 2015
If you're working in Pages 5.5 or later, Numbers 3.5 or later, or Keynote 6.5 or later and have created a file that is larger than 500 MB, saving it as a package helps the app you're using perform better. By default, these versions of Pages, Numbers and Keynote auto-save files to the hard drive as a single file.
You can switch between a single file and a package at any time. Open your file. Then choose File > Advanced > Change File Type and select the type you'd like to use.1
LukasReschke commentedon Apr 8, 2015
From the same page: