![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
express-form-post
Advanced tools
A simple solution to handling file and form submissions
$ npm install express-form-post --save
The information for the file uploaded will be available in the files and body object in the request object.
var express = require('express');
var app = express();
var efp = require('express-form-post');
var formPost = efp();
app.use(formPost.middleware());
var express = require('express');
var app = express();
var efp = require("express-form-post");
const formPost = efp({
store: "disk",
directory: path.join(__dirname, "tmp"),
maxfileSize: 10000,
filename: function(filename, fieldname, mimetype) {
return Date.now() + '-' + filename;
},
validate: function(fieldname, filename, mimetype) {
console.log(mimetype);
if(mimetype != "application/pdf") {
return false;
}
}
});
app.use(formPost.middleware(function(err) {
console.log(err);
}));
$ npm install aws-sdk --save
var express = require('express');
var app = express();
var efp = require('express-form-post');
const formPost = efp({
store: "aws-s3",
maxfileSize: 100000,
filename: function(filename, fieldname, mimetype) {
return filename;
},
keys: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.secretAccessKey,
bucketName: process.env.S3_BUCKET_NAME,
ACL: "public-read"
}
})
app.use(formPost.middleware(function(err) {
console.log(err);
}));
FAQs
Simple, reliable and memory efficient http file parse and upload api
The npm package express-form-post receives a total of 3 weekly downloads. As such, express-form-post popularity was classified as not popular.
We found that express-form-post demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.