Questions tagged [is-uploaded-file]
13 questions
7
votes
3 answers
Symfony HttpFoundation UploadedFile "not uploaded due to unknown error" when using Doctrine DataFixtures
I've been using my Attachment entity based on the cookbook recipie How To Handle File Uploads With Doctrine in Symfony 2.3.
It works well, even in functional tests. However using it with Doctrine DataFixtures is causing me…

Adam Elsodaney
- 7,722
- 6
- 39
- 65
4
votes
1 answer
Symfony UploadedFile not getting uploaded
I am trying to create a UploadedFile from an existing file.But it is not getting uploaded successfully,neither it shows any error.
Here is my code
$encoded_data = "This is a huge string";
$filename = "tempFile";
$handle =…

user3425344
- 3,357
- 4
- 20
- 31
3
votes
1 answer
file upload mime type issue with UploadedFile
I am using UploadedFile class in symfony2 to upload image files. I have allowed images with mime type image/jpg and image/png. When I upload a png file from my system to server its mime type is changed automatically. I know its changed because when…

Ashish Awasthi
- 1,484
- 1
- 19
- 34
1
vote
4 answers
Show progress while loading pdf file ngx-doc-viewer
Somebody have more documentation for "googleCheckContentLoaded=true" and "loaded" otput??
What I want is to show progress while loading pdf file.
I'm using ngx-doc-viewer

Yul
- 11
- 1
- 2
1
vote
1 answer
PHP & jQuery file upload issues
I'm trying to use blueimp's jQuery file upload script.
The files are sent to "upload.php":
if (isset($_FILES['file'])) {
$file = $_FILES['file'];
// Set variables
$file_name = stripslashes($file['name']);
if…

o01
- 5,191
- 10
- 44
- 85
1
vote
1 answer
is_uploaded_file() returns always FALSE
I've created a form for multi-file upload.
I report here only the required code, of it.
when I upload one or more files, the array
$_FILES['shopImage']
has the date related the one or more files,
and I can see it through the var_dump() I put into…

Tormy Van Cool
- 658
- 10
- 29
0
votes
1 answer
Multiple File upload isn't working, nor is is_upload_file
I cant seem to get this thing to work right, I will think I have it and something else wont work. Take a look...
I am trying to upload multiple files, here is my php, as it sits it always says there is a problem with the file, and if I remove…

Chris James Champeau
- 984
- 2
- 16
- 37
0
votes
2 answers
How to diagnose uploads failing only on OS X clients
We recently upgrade our server to PHP 5 and file uploads are now failing, but only from OS X clients (Safari 5, Firefox 3.6) although the same browser versions on Windows work fine.
The code is failing as is_uploaded_file() is returning false when…

fmark
- 57,259
- 27
- 100
- 107
0
votes
0 answers
Erros Post Uploaded image with angularJS
I have question about upload-ing images with angularJS.
I'm using this code for upload image http://jsfiddle.net/sc1qnw4n/, that's code already made by someone.
$scope.uploadImage = function() {
var fd = new FormData();
var imgBlob =…

Iris
- 1
- 2
0
votes
1 answer
Cant move uploaded file using php move_uploaded_file()
I have a page which allows users to post an advert on my website. This page allows them to upload multiple photos of the product in question.
I currently have two forms. The first handles details of the product, while the second is a dropzone (using…

Ben Thompson
- 4,743
- 7
- 35
- 52
-1
votes
4 answers
file uploader PHP doesn't work, I don't know why
My HTML FORM code:
-1
votes
1 answer
Cannot upload file to server in PHP
I'm trying to create a profile page for my members that allows them to change their avatar, but I'm having some issues with the upload part.
if ($_POST['avatar']) {
$avatar = $_POST['avatar'];
$avatype = $_FILES['avatar']['type'];
…

Pyrewolf
- 35
- 6
-2
votes
1 answer
Unknown wrong behavior in PHP IF statement
I'm writing a code to upload a file in PHP. But there is an unknown and strange problem in it's IF statement. It does operations in both true and false condition! Look at the code below please:
if…

Mohammad Saberi
- 12,864
- 27
- 75
- 127