Skip to content

Improved documentation for the JInputFiles class. #1731

Merged
merged 2 commits into from Dec 3, 2012

2 participants

@eddieajau

No description provided.

@eddieajau eddieajau commented on the diff Dec 3, 2012
docs/manual/en-US/chapters/packages/input.md
-> Can you help improve this section of the manual?
+The `JInputFiles` class provides a way to handle file attachments as payloads of POSTed forms. Consider the following form which is assumed to handle an array of files to be attached (through some JavaScript behavior):
+
+```html
+<form method="POST" action="/files" enctype="multipart/form-data">
+ Attachments:
+ <input type="file" name="attachments[]" />
+ <button>Add another file</button>
+</form>
+```
+
+Access the files from the request could be done as follows:
+
+```
@eddieajau
eddieajau added a note Dec 3, 2012

Note to self: add php format.

@pasamio
pasamio added a note Dec 3, 2012

Reminder: add php format

@eddieajau
eddieajau added a note Dec 3, 2012

Done. Should be ready to merge now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@pasamio pasamio merged commit c968306 into joomla:staging Dec 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.