Page MenuHomePhabricator
Feed Advanced Search

Mar 17 2015

epriestley updated subscribers of T5187: Make "Upload File" dialog have a vanilla file upload control.
Mar 17 2015, 10:25 PM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia
epriestley added a comment to T7594: Having trouble with chunked uploads.

Okay, let me fix the fallback behavior and get it printing whatever the chunk upload throws and we'll see where that gets us.

Mar 17 2015, 9:22 PM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

Nope, nothing in the error logs on the server.

Mar 17 2015, 9:21 PM · Files
epriestley added a comment to T7594: Having trouble with chunked uploads.

Hmm, anything in the error log on the server?

Mar 17 2015, 9:20 PM · Files
joshuaspence reopened T7594: Having trouble with chunked uploads as "Open".

OK. I'm having some more issues...

Mar 17 2015, 9:07 PM · Files
joshuaspence closed T7594: Having trouble with chunked uploads as Resolved.
Mar 17 2015, 12:51 PM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

OK, thanks for clarifying.

Mar 17 2015, 12:51 PM · Files
epriestley added a comment to T7594: Having trouble with chunked uploads.

It's just 8MB * headroom factor.

Mar 17 2015, 12:50 PM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

So where does 32MB come from? If I set the filesize limit to 8MB, why do I need to set the nginx/PHP limits to 32MB?

Mar 17 2015, 12:42 PM · Files
epriestley added a comment to T7594: Having trouble with chunked uploads.

This API is partly odd because I want to disable chunking into MySQL by default, but allow users to enable it relatively easily. That motivates the <4MB -> 4MB chunk-enabling threshold. We could hard-code the 8MB single-file threshold but I suspect the total number of custom storage engines in the wild is about 3 so I figured I'd wait until the next iteration to figure out where the API should go (I want to the config into the Files web UI, which would let us expose [ ] Enable chunk storage for this engine or whatever).

Mar 17 2015, 12:39 PM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

So, setting a filesize limit allows me to upload files with an unlimited size?

Mar 17 2015, 12:32 PM · Files
epriestley added a comment to T7594: Having trouble with chunked uploads.

(8MB just stores all 1-chunk and 2-chunk files as single files, and then starts chuking as soon as we'd have 3 chunks.)

Mar 17 2015, 12:31 PM · Files
epriestley added a comment to T7594: Having trouble with chunked uploads.

Ohhh. Set these options in your custom engine:

Mar 17 2015, 12:31 PM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

It seems that my custom PhabricatorFileStorageEngine class is being selected instead of PhabricatorChunkedFileStorageEngine. If I manually decrease the priority of PhabricatorChunkedFileStorageEngine to 0, I am able to perform a chunked upload.

Mar 17 2015, 10:47 AM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.
My Phabricator Installation
> arc --conduit-uri=https://phabricator.example.com --trace upload large-file
libphutil loaded from '/home/joshua/dotfiles/modules/phabricator/libphutil/src'.
arcanist loaded from '/home/joshua/dotfiles/modules/phabricator/arcanist/src'.
Config: Reading user configuration file "/home/joshua/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: No candidate locations for .arcconfig from this working directory.
Working Copy: Path "/home/joshua" is not in any working copy.
>>> [0] <conduit> conduit.connect() <bytes = 586>
>>> [1] <http> https://phabricator.example.com/api/conduit.connect
<<< [1] <http> 3,184,008 us
<<< [0] <conduit> 3,184,671 us
Uploading 'large-file'...
>>> [2] <conduit> file.allocate() <bytes = 295>
>>> [3] <http> https://phabricator.example.com/api/file.allocate
<<< [3] <http> 614,302 us
<<< [2] <conduit> 614,989 us
>>> [4] <conduit> file.upload() <bytes = 209715421>
>>> [5] <http> https://phabricator.example.com/api/file.upload
<<< [5] <http> 1,327,965 us
<<< [4] <conduit> 1,328,623 us
Mar 17 2015, 9:51 AM · Files
rm added a comment to T3353: Make Phriction Document changes reviewable.

FWIW, FB is using Quip for this kind of design/idea document these days: http://quip.com

Mar 17 2015, 8:48 AM · Restricted Project, Prioritized, Phriction
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

Ah. I did try testing it out on this install with a 100MB file. Perhaps I shall try with a larger file instead.

Mar 17 2015, 8:22 AM · Files
epriestley added a comment to T7594: Having trouble with chunked uploads.

Hmm, I'm not sure. We use nginx on this server -- client_max_body_size is technically set to 128m, but 32m should be more than enough.

Mar 17 2015, 4:52 AM · Files
joshuaspence added a comment to T7594: Having trouble with chunked uploads.

I suspect this is an nginx thing.

Mar 17 2015, 4:33 AM · Files
wotte added a comment to T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases.

DDoS stuff

Mar 17 2015, 3:51 AM · Abuse, Files
joshuaspence updated subscribers of T7594: Having trouble with chunked uploads.
Mar 17 2015, 2:52 AM · Files
epriestley added a comment to T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases.

Not precisely related, but as of a day or so ago, at HEAD, file sizes are unlimited for all users if you have at least one storage engine capable of storing 4MB chunks. The documentation has been updated and should reflect the modern state of the world:

Mar 17 2015, 12:58 AM · Abuse, Files
wotte added a comment to T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases.

This issue stems from a conversation I had with a PI of one of the projects on which we're using Phabricator, and we're about to open the instance to a wider audience (not necessarily general public, but a wider audience nonetheless). His comment was basically, "Disable the upload button for external users." Note, here, that 'external' are still logged-in users, not "public".

Mar 17 2015, 12:30 AM · Abuse, Files

Mar 16 2015

epriestley added a comment to T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases.

Can you walk me thorough the kind of abuse/misuse you're seeing (or anticipating)? We have quota infrastructure and could extend it to files, but there's currently no per-user component, and I'd like to see if we can come up with better approaches to handle specific abuse scenarios since quotas are a pretty blunt instrument.

Mar 16 2015, 11:59 PM · Abuse, Files
epriestley closed T7592: Administrators should be able to change visibility/delete any file as Wontfix.

We intentionally do not provide this capability from the web UI. For rationale, see:

Mar 16 2015, 11:52 PM · Files
wotte created T7593: Allow administrators to disable files to prevent "l33t w4r3z" abuse cases.
Mar 16 2015, 11:51 PM · Abuse, Files
wotte created T7592: Administrators should be able to change visibility/delete any file.
Mar 16 2015, 11:48 PM · Files

Mar 15 2015

chad closed T6794: Lightbox status bar stays behind after scrolling as Resolved.

Chrome 41 is current and does not reproduce this.

Mar 15 2015, 8:31 PM · Files
epriestley closed T5007: Exception when uploading file to S3 as Wontfix.

This is almost a year old, I can't reproduce it, and we haven't seen other reports.

Mar 15 2015, 7:32 PM · Files, Phragment
epriestley added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

Support for streaming files (vs fire-and-forget requests) -- which I think was discussed somewhere -- is no longer very important after T7149. We can now store files of arbitrary size in engines that only expose the existing writeEntireFile($big_chunk_of_data) API without major downsides.

Mar 15 2015, 7:31 PM · Files
epriestley added a comment to T5187: Make "Upload File" dialog have a vanilla file upload control.

After T7149, drag-and-drop uploads support arbitrarily large files and resumable uploads for files larger than the chunk threshold (currently 8MB).

Mar 15 2015, 7:28 PM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia
epriestley added a comment to T6794: Lightbox status bar stays behind after scrolling.

This has been a few months, any idea if there was a resolution?

Mar 15 2015, 7:19 PM · Files
epriestley added a comment to T7480: Allow editing the name of a file.
  • In Files → (Choose a File) → Edit File, the only available option is "Visible To".
  • Add a "name" field.
  • Add a "name" transaction type, editor support, etc., so changing the name shows up in the file's edit history.
Mar 15 2015, 7:18 PM · Files
epriestley assigned T7480: Allow editing the name of a file to lpriestley.
Mar 15 2015, 7:16 PM · Files
epriestley added a comment to T7480: Allow editing the name of a file.

I don't think there's any product or technical reasoning here, Files just predated ApplicationTransactions and came from a simpler time.

Mar 15 2015, 7:16 PM · Files

Mar 13 2015

epriestley closed T7411: Allow uploading files from the command line as Wontfix.

D12060 or followup work should remove the limit from arc upload.

Mar 13 2015, 1:20 AM · Files

Mar 12 2015

btrahan added a revision to T7539: Dragging a file into Durable Column on /home/ triggers full upload: Restricted Differential Revision.
Mar 12 2015, 10:37 PM · Files, Conpherence
btrahan added a comment to T7539: Dragging a file into Durable Column on /home/ triggers full upload.

I'll see if I can get it to work better.

Mar 12 2015, 9:45 PM · Files, Conpherence
epriestley added a comment to T7539: Dragging a file into Durable Column on /home/ triggers full upload.

In Safari, dragging files to the homepage now flashes the mask on and off rapidly. You have about a 50% chance of actually hitting an upload.

Mar 12 2015, 9:17 PM · Files, Conpherence
btrahan closed T7539: Dragging a file into Durable Column on /home/ triggers full upload as Resolved by committing Restricted Diffusion Commit.
Mar 12 2015, 8:40 PM · Files, Conpherence
btrahan added a revision to T7539: Dragging a file into Durable Column on /home/ triggers full upload: Restricted Differential Revision.
Mar 12 2015, 8:32 PM · Files, Conpherence
btrahan triaged T7539: Dragging a file into Durable Column on /home/ triggers full upload as High priority.

Blocking a normal means high priority I think.

Mar 12 2015, 7:35 PM · Files, Conpherence
btrahan claimed T7539: Dragging a file into Durable Column on /home/ triggers full upload.
Mar 12 2015, 7:34 PM · Files, Conpherence
chad added a parent task for T7539: Dragging a file into Durable Column on /home/ triggers full upload: T7014: Annouce Persistent Chat option in Conpherence.
Mar 12 2015, 4:55 PM · Files, Conpherence
chad moved T7539: Dragging a file into Durable Column on /home/ triggers full upload from Backlog to v2 on the Conpherence board.
Mar 12 2015, 4:54 PM · Files, Conpherence
chad created T7539: Dragging a file into Durable Column on /home/ triggers full upload.
Mar 12 2015, 5:02 AM · Files, Conpherence

Mar 8 2015

joshuaspence added a comment to T7480: Allow editing the name of a file.

I don't know if this way an explicit product decision, but I don't think there is any technical reason we don't allow this.

Mar 8 2015, 1:26 AM · Files
joshuaspence added a comment to T7501: Documentation for Files.

Sure, I understand your concern.

Mar 8 2015, 1:03 AM · Files, Documentation

Mar 7 2015

chad added a comment to T7501: Documentation for Files.

In all seriousness, I understand why these are filed, but my concern is this does not solve a real problem. Specifically in https://secure.phabricator.com/book/phabcontrib/article/feature_requests/ we request people state problems they are having, and not the solution. If there is a real issue using the Application, we'd rather fix the application and not just rely on Documentation for Documentation sake. I don't want to build Phabricator in such a way that Documentation is a vital part of a user understanding the application. On some applications that may be unavoidable.

Mar 7 2015, 3:37 AM · Files, Documentation
joshuaspence created T7501: Documentation for Files.
Mar 7 2015, 3:16 AM · Files, Documentation

Mar 6 2015

joshuaspence created T7480: Allow editing the name of a file.
Mar 6 2015, 11:21 PM · Files

Mar 3 2015

epriestley closed T6990: Filenames downloaded get mangled when not latin based as Resolved by committing Restricted Diffusion Commit.
Mar 3 2015, 11:27 AM · Files
epriestley added a revision to T6990: Filenames downloaded get mangled when not latin based: Restricted Differential Revision.
Mar 3 2015, 1:53 AM · Files

Mar 1 2015

joshuaspence added a comment to T7411: Allow uploading files from the command line.

I suppose that an SSH client for Conduit would mitigate this issue (T550).

Mar 1 2015, 8:24 PM · Files
epriestley closed T7398: Clicking "Download" on an image, and then right-click Save Image As does not work as Resolved by committing Restricted Diffusion Commit.
Mar 1 2015, 8:12 PM · Files
epriestley closed T7379: Give builtin files runtime policies as Resolved by committing Restricted Diffusion Commit.
Mar 1 2015, 8:12 PM · Files
joshuaspence added a comment to T7411: Allow uploading files from the command line.

Not quite. The main issue I have is that the file is larger than the maximum configured size that nginx/PHP will handle. My solution in the past has been to I crease the nginx/PHP limits.

Mar 1 2015, 7:34 PM · Files
epriestley added a revision to T7379: Give builtin files runtime policies: Restricted Differential Revision.
Mar 1 2015, 4:19 PM · Files
epriestley renamed T7379: Give builtin files runtime policies from Projects missing images when logged out to Give builtin files runtime policies.
Mar 1 2015, 4:02 PM · Files
epriestley triaged T7398: Clicking "Download" on an image, and then right-click Save Image As does not work as Low priority.
Mar 1 2015, 3:58 PM · Files
epriestley added a revision to T7398: Clicking "Download" on an image, and then right-click Save Image As does not work: Restricted Differential Revision.
Mar 1 2015, 3:55 PM · Files
epriestley added a comment to T7411: Allow uploading files from the command line.

You can do this with arc upload. Is that sufficient?

Mar 1 2015, 2:15 PM · Files
joshuaspence created T7411: Allow uploading files from the command line.
Mar 1 2015, 12:34 PM · Files

Feb 27 2015

epriestley added a comment to T7398: Clicking "Download" on an image, and then right-click Save Image As does not work.

Yeah, repros in Safari too, we just have the wrong link happening.

Feb 27 2015, 4:34 PM · Files
epriestley added a comment to T7398: Clicking "Download" on an image, and then right-click Save Image As does not work.

Clicking "Download" is expected to set Content-Disposition: attachment and force a download. We're probably either pointing the button at the wrong place (likely) or Chrome has gone crazy and no longer permits/recognizes this (unlikely).

Feb 27 2015, 4:33 PM · Files
chad updated the task description for T7398: Clicking "Download" on an image, and then right-click Save Image As does not work.
Feb 27 2015, 4:32 PM · Files
epriestley added a comment to T7394: ui.custom_header requires phid, but no way to get it from file.

You can use file.info from the Conduit API console to convert a file ID into a PHID, but will likely have to go to the database for the caching stuff in T4214 anyway.

Feb 27 2015, 12:45 AM · Files
chad merged task T7394: ui.custom_header requires phid, but no way to get it from file into T4214: Allow installs to change or supplement the "Phabricator" icon.
Feb 27 2015, 12:44 AM · Files
chad added a comment to T7394: ui.custom_header requires phid, but no way to get it from file.

This isn't the correct solution. I'm going to merge this into T4214 since that task is not marked as complete.

Feb 27 2015, 12:44 AM · Files
• sshannin created T7394: ui.custom_header requires phid, but no way to get it from file.
Feb 27 2015, 12:40 AM · Files

Feb 15 2015

joshuaspence added a comment to T5155: Evaluate support for AWS IAM Roles in S3 Client.

I have half a diff for this (D10530) that I cab probably finish off. The main issue I had was with signing the requests and also the difficulty associated with testing.

Feb 15 2015, 7:51 PM · Files
epriestley added a parent task for T5155: Evaluate support for AWS IAM Roles in S3 Client: T7163: Convert Phacility file storage to use S3.
Feb 15 2015, 6:03 PM · Files
chad updated subscribers of T5187: Make "Upload File" dialog have a vanilla file upload control.
Feb 15 2015, 12:39 PM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia
chad merged task T7274: Support uploading on a mobile into T5187: Make "Upload File" dialog have a vanilla file upload control.
Feb 15 2015, 12:39 PM · Mobile, Files
chad lowered the priority of T7274: Support uploading on a mobile from Unbreak Now! to Needs Triage.
Feb 15 2015, 12:38 PM · Mobile, Files
• paladox triaged T7274: Support uploading on a mobile as Unbreak Now! priority.
Feb 15 2015, 11:36 AM · Mobile, Files
• paladox added a comment to T7274: Support uploading on a mobile.

I am not sure which project this goes into.

Feb 15 2015, 11:36 AM · Mobile, Files
• paladox created T7274: Support uploading on a mobile.
Feb 15 2015, 11:35 AM · Mobile, Files

Feb 14 2015

CodeMouse92 added a comment to T3353: Make Phriction Document changes reviewable.

(Ahh, thanks for the merge, @epriestley.)

Feb 14 2015, 8:58 PM · Restricted Project, Prioritized, Phriction
epriestley updated subscribers of T3353: Make Phriction Document changes reviewable.
Feb 14 2015, 8:55 PM · Restricted Project, Prioritized, Phriction

Feb 9 2015

qgil updated the task description for T5187: Make "Upload File" dialog have a vanilla file upload control.
Feb 9 2015, 10:28 AM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia

Jan 27 2015

matmarex added a revision to T5187: Make "Upload File" dialog have a vanilla file upload control: Unknown Object (Differential Revision).
Jan 27 2015, 6:51 AM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia
matmarex claimed T5187: Make "Upload File" dialog have a vanilla file upload control.

It would be a lot simpler to use HTML 5 File API together with a regular <input type=file /> field. This won't help the IE8s of the world, but will help users of non-standard, but modern operating systems and browsers.

Jan 27 2015, 6:44 AM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia

Jan 20 2015

btrahan added a comment to T6990: Filenames downloaded get mangled when not latin based.

See also T1692, which claims to have resolved this very issue.

Jan 20 2015, 9:44 PM · Files

Jan 19 2015

chad triaged T6990: Filenames downloaded get mangled when not latin based as Normal priority.
Jan 19 2015, 9:27 PM · Files
chad created T6990: Filenames downloaded get mangled when not latin based.
Jan 19 2015, 9:26 PM · Files

Jan 12 2015

joshuaspence added a comment to T6726: Files can recursively depend on one another, needing infinite policy checks.

Haha cool, just tested this out on my dev install and it maxes out the CPU on my VM.

Jan 12 2015, 11:07 AM · Files, Policy

Jan 9 2015

epriestley updated subscribers of T3353: Make Phriction Document changes reviewable.

This task discusses text (vs code) diffing above. Not sure if you're interested in looking at this, but here's a rough outline:

Jan 9 2015, 3:49 PM · Restricted Project, Prioritized, Phriction

Jan 5 2015

chad added a comment to T6794: Lightbox status bar stays behind after scrolling.

I don't intend to fix this unless Chrome's fix doesn't make it to production.

Jan 5 2015, 7:02 PM · Files
Krinkle added a comment to T6794: Lightbox status bar stays behind after scrolling.

Confirmed that in Chrome Canary 41 41.0.2266.2, the image scales down instead of having a scrollbar.

Jan 5 2015, 7:01 PM · Files
nateguchi2 updated subscribers of T5187: Make "Upload File" dialog have a vanilla file upload control.

+1 for mobile browsers

Jan 5 2015, 2:01 PM · Prioritized, FreeBSD, User Delight, Remarkup, Files, Wikimedia

Jan 1 2015

epriestley added a comment to T6674: Support video MIME types and distinguish between audio and video OGG files.

We use PHP's Fileinfo extension if it's available and fall back to running file, then fall back to mime_content_type() if that doesn't work either. Presumably Fileinfo will eventually update to perform this detection, although I'm not sure what that timeline might look like or exactly what's going on with it internally.

Jan 1 2015, 2:24 AM · Files
mattflaschen added a comment to T6674: Support video MIME types and distinguish between audio and video OGG files.

I believe OGG is primarily used for audio in the wild today, and we haven't seen other reports of users running into this same audio vs video issue. If, say, 95% of installs use OGG only for audio, it seems reasonable to leave it as a default and let the other 5% configure it.

Jan 1 2015, 1:59 AM · Files

Dec 30 2014

chad added a comment to T6831: Embedding a mock or a file in a task should add a link in the header.

I guess as a designer myself I don't understand the optimization here (quick create Pholio). I fundamentally work one of two ways. Serious 'pre-product' or explorative designs (which take 10, 20, 40 hours), which I expect revisions and long discussions on. This product is Pholio. The second is lightweight corrections or attachments to tasks. The 'hey go make this' or 'i just threw this together'. In those cases I drag and drop into comments/descriptions on a task or diff.

Dec 30 2014, 8:06 PM · Files, Pholio, Maniphest
qgil added a comment to T6831: Embedding a mock or a file in a task should add a link in the header.
In T6831#89086, @chad wrote:

Adding a file either requires you click "edit" and drag in a file or scroll to the bottom and comment and drag in a file. I think both are equally easy, just different.

Dec 30 2014, 7:28 PM · Files, Pholio, Maniphest
epriestley added a comment to T6831: Embedding a mock or a file in a task should add a link in the header.

Are there some example tasks on the WMF install where assets are few/simple enough that making a mock is overkill, but numerous enough that finding the latest versions is time consuming/complex? If an asset (like an icon) is straightforward and doesn't need discussion, how often are there a ton of versions of it?

Dec 30 2014, 6:47 PM · Files, Pholio, Maniphest
chad added a comment to T6831: Embedding a mock or a file in a task should add a link in the header.

I should mention long-term I want to make the Pholio comment controls work on any image in lightbox, not just Pholio mocks.

Dec 30 2014, 6:39 PM · Files, Pholio, Maniphest
chad added a comment to T6831: Embedding a mock or a file in a task should add a link in the header.

Adding a file either requires you click "edit" and drag in a file or scroll to the bottom and comment and drag in a file. I think both are equally easy, just different.

Dec 30 2014, 6:35 PM · Files, Pholio, Maniphest
qgil added a comment to T6831: Embedding a mock or a file in a task should add a link in the header.

Your reasoning makes sense. I think the actual problem behind this request is that adding a file to a comment is a lot easier than embedding a new mockup to the header or description of a task, counting the steps each path takes and the extra fields that a new mock offers.

Dec 30 2014, 6:20 PM · Files, Pholio, Maniphest
chad added projects to T3353: Make Phriction Document changes reviewable: Applications, Files.
Dec 30 2014, 6:02 PM · Restricted Project, Prioritized, Phriction