Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[WebProfilerBundle] Display uploaded files in the profiler #26946

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2018

Conversation

javiereguiluz
Copy link
Member

@javiereguiluz javiereguiluz commented Apr 16, 2018

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #26926
License MIT
Doc PR -

profiler_files

Note: I wanted to use the VarDumper to display the table information (as we do in the rest of tables) but I had lots of problems and I just wanted to create a proof of concept for the feature to see if we like it.

@chapterjason
Copy link
Contributor

chapterjason commented Apr 21, 2018

Looks awesome, as I watched in the UploadedFile I saw the getError() and getErrorMessage() methods, what happens if there is just an error with one file?

<th scope="col">File Name</th>
<th scope="col">MIME Type</th>
<th scope="col text-right">Size (bytes)</th>
<th scope="col">Temporary Location</th>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this useful info? afaik, the temp file is gone when this is displayed, isn't it?

Copy link
Contributor

@chapterjason chapterjason Jun 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right.

The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed.
http://php.net/manual/en/features.file-upload.post-method.php

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javiereguiluz Can you remove this column?

<th scope="col">File Name</th>
<th scope="col">MIME Type</th>
<th scope="col text-right">Size (bytes)</th>
<th scope="col">Temporary Location</th>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javiereguiluz Can you remove this column?

@fabpot
Copy link
Member

fabpot commented Jun 25, 2018

Thank you @javiereguiluz.

@fabpot fabpot merged commit 3f6f75b into symfony:master Jun 25, 2018
fabpot added a commit that referenced this pull request Jun 25, 2018
…iler (javiereguiluz)

This PR was squashed before being merged into the 4.2-dev branch (closes #26946).

Discussion
----------

[WebProfilerBundle] Display uploaded files in the profiler

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #26926
| License       | MIT
| Doc PR        | -

![profiler_files](https://user-images.githubusercontent.com/73419/38807087-ac1e9bac-417b-11e8-99e0-317b437c986e.png)

Note: I wanted to use the VarDumper to display the table information (as we do in the rest of tables) but I had lots of problems and I just wanted to create a proof of concept for the feature to see if we like it.

Commits
-------

3f6f75b [WebProfilerBundle] Display uploaded files in the profiler
@xabbuh
Copy link
Member

xabbuh commented Jun 26, 2018

Wouldn't it make sense to also display the error (possibly human readable) if any occurred during uploading?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants