Comments (9)
Thank you! This change should fix the issue:
You can apply it manually or use the latest release to update.
from online-ftp-s3.
Do you upload from Windows to Ubuntu (Server) or from Ubuntu to Windows (Server)?
It should not matter from what OS you are uploading the file. It can make a difference on the server though.
If you add a dd($file->clientExtension());
or dd($file);
before this line what output do you get when you upload your file?
from online-ftp-s3.
thank you for quick response! and sorry for lack of descripiton.
my environment is below.
- Server OS is Linux (Ubuntu 16.04 LTS)
- Client OS is Windows 7 and Linux (Ubuntu 16.04 LTS)
- Client web browser is Chrome and Firefox
- On Windows, unavailable by both browsers
- On Linux, available by both browsers
certainly I also guess OS doesn't matter. I try test codes you show as soon as possible.
please wait a little
from online-ftp-s3.
sorry for late response.
I tried your idea. so it looked file was upload correctly and app doesn't show dump and doesn't die (Upload successful
is displayed but not uploaded in fact).
environment:
- OS
- Windows 7
- Ubuntu
- Web browser
- Chrome
- Firefox
- file extension
- zip
- not zip
I tried all combinations. result is the same.
I doubt php.ini
settings...
from online-ftp-s3.
Yes, that's because it's an AJAX request. The dump will only be visible in the developer tools in the Network tab. Look there.
Alternatively you can add a info
statement and then look in your log files for the output.
info('Uploading file', ['file' => $file, 'extension' => $file->clientExtension()]);
from online-ftp-s3.
oh, thanks! soon i tried again. below is log by info
.
Windows 7
, Chrome
and zip extension file
[2017-10-19 07:13:27] production.INFO: Uploading file {"file":"[object] (Illuminate\\Http\\UploadedFile: /tmp/phpYyl9wn)","extension":null}
Windows 7
, Chrome
and txt extension file
[2017-10-19 07:19:09] production.INFO: Uploading file {"file":"[object] (Illuminate\\Http\\UploadedFile: /tmp/phpaiXIU5)","extension":"txt"}
Ubuntu 16.04 LTS
, Chrome
and zip extension file
[2017-10-19 07:17:20] production.INFO: Uploading file {"file":"[object] (Illuminate\\Http\\UploadedFile: /tmp/phpzq55cC)","extension":"zip"}
Ubuntu 16.04 LTS
, Chrome
and txt extension file
[2017-10-19 07:28:58] production.INFO: Uploading file {"file":"[object] (Illuminate\\Http\\UploadedFile: /tmp/phpxyT9m2)","extension":"txt"}
in Firefox, the same result.
from online-ftp-s3.
Could you replace the info statement with the following and provide me with the log entry when you upload the zip file on Windows again?
info('Uploading file', ['mime' => $file-> getMimeType(), 'extension' => $file->getExtension(), 'guessed' => $file->guessExtension()]);
from online-ftp-s3.
I replaced the statement.
[2017-10-19 08:26:41] production.INFO: Uploading file {"mime":"text/plain","extension":"","guessed":"txt"}
[2017-10-19 08:26:49] production.INFO: Uploading file {"mime":"application/zip","extension":"","guessed":"zip"}
the former file is txt
extension. the latter is zip
extension.
from online-ftp-s3.
Great. I confirmed extracting zip
correctly on not only Ubuntu but also Windows!
thank you for this awesome product. I'm glad to contribute.
from online-ftp-s3.
Related Issues (20)
- Annoying Buttons HOT 2
- Upper Folder, Initial Folder, Folder Location HOT 1
- Install on Ubuntu HOT 5
- How to run the project? HOT 3
- Not able to change PATH? And what should be the default PATH? HOT 7
- Question HOT 1
- Several uploading issues HOT 1
- S3 Connection problem HOT 6
- sort and filter options HOT 1
- Question: keyboard shortcuts HOT 1
- Add functions HOT 2
- Symlinks view
- Initial Setup Issue HOT 1
- Is there any how-to? HOT 1
- Outdated security protocols
- doesn't work when filename has nonascii letters
- Cannot connect to server! (FTP) HOT 1
- data deleted HOT 1
- How to run this app ? ;) HOT 2
- Exhausted memory and upload progress HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from online-ftp-s3.