You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
run the application/file phpQS.php
Any log messages given by the failure
none
Expected/desired behavior
the file HelloWorld.txt uploaded to Azure Blob storage should have the text "Hello Azure!" in it, but it is empty.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10 Professional
Versions
Mention any other details that might be useful
On line 84 in phpQS.php the call to open the file in "write" mode will essentially truncate the file contents (http://php.net/manual/en/function.fopen.php ): $myfile = fopen($fileToUpload, "w") or die("Unable to open file!");
Thus when the file is subsequently uploaded to Azure it will be empty.
Since the intention is just to see if the file exists/can be read, the fix would be to use the "read" flag on line 84: $myfile = fopen($fileToUpload, "r") or die("Unable to open file!");
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
Windows 10 Professional
Versions
Mention any other details that might be useful
On line 84 in phpQS.php the call to open the file in "write" mode will essentially truncate the file contents (http://php.net/manual/en/function.fopen.php ):
$myfile = fopen($fileToUpload, "w") or die("Unable to open file!");
Thus when the file is subsequently uploaded to Azure it will be empty.
Since the intention is just to see if the file exists/can be read, the fix would be to use the "read" flag on line 84:
$myfile = fopen($fileToUpload, "r") or die("Unable to open file!");
The text was updated successfully, but these errors were encountered: