Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Projet ISIS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MARQUE Pierre
Projet ISIS
Commits
128acfe5
Commit
128acfe5
authored
Mar 09, 2022
by
BOUAZIZ Nassim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format accepté
parent
85c84771
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.php
index.php
+1
-1
upload.php
upload.php
+1
-1
No files found.
index.php
View file @
128acfe5
...
...
@@ -15,7 +15,7 @@
<label
for=
"fileUpload"
>
Fichier:
</label>
<input
type=
"file"
name=
"photo"
id=
"fileUpload"
>
<input
id=
"#btnSubmit"
type=
"submit"
name=
"submit"
value=
"Upload"
>
<p><strong>
Note:
</strong>
Seuls les formats .jpg
, .jpeg, .jpeg, .gif,
.png sont autorisés jusqu'à une taille maximale de 5 Mo.
</p>
<p><strong>
Note:
</strong>
Seuls les formats .jpg
et
.png sont autorisés jusqu'à une taille maximale de 5 Mo.
</p>
</form>
<div
id=
"div"
></div>
</body>
...
...
upload.php
View file @
128acfe5
...
...
@@ -4,7 +4,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){
// Vérifie si le fichier a été uploadé sans erreur.
if
(
isset
(
$_FILES
[
"photo"
])
&&
$_FILES
[
"photo"
][
"error"
]
==
0
)
{
$allowed
=
array
(
"jpg"
=>
"image/jpg"
,
"
jpeg"
=>
"image/jpeg"
,
"gif"
=>
"image/gif"
,
"
png"
=>
"image/png"
);
$allowed
=
array
(
"jpg"
=>
"image/jpg"
,
"png"
=>
"image/png"
);
$filename
=
$_FILES
[
"photo"
][
"name"
];
$filetype
=
$_FILES
[
"photo"
][
"type"
];
$filesize
=
$_FILES
[
"photo"
][
"size"
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment