Comments (2)
It's funny because I even have a comment about this: https://github.com/milesj/transit/blob/master/src/Transit/File.php#L528
I'm assuming you are using this via an import instead of an upload? It may be a better solution to customize the filename when uploading, instead of relying on the detection. https://github.com/milesj/transit/blob/master/src/Transit/Transit.php#L243
from transit.
I'm assuming you are using this via an import instead of an upload?
I'll have to take a look how your CakePHP Uploader uses it 😀
But thanks for the heads up, I'll get back on that. We currently work this around by using a proxy (we already had) which luckily for us has an endpoint named /someprxy/?src=http....
. In this case, the detection logic does not see a file extension and only passed back the actual content detection.
from transit.
Related Issues (11)
- Transit rollback HOT 3
- AWS Dependency HOT 1
- Problems with file_info mimetype check HOT 2
- Allow developers the options to specify CA Bundle HOT 1
- Allow developers to change CURLOPT_SSL_VERIFYPEER HOT 7
- bug with maintaining aspect ration while resizing the image HOT 2
- Add support for Rackspace CloudFiles HOT 11
- Issue within the rename function in the File class HOT 2
- s3 transporter auto-deleting HOT 3
- Validator failed to recognize file by mime
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 transit.