Open nikochiko opened 2 years ago
In the initial spec, we saw three ways to present input. What to do when both code and files are given?
notes: might be different depending on if main.py is given, or we could throw an error immediately.
relates to #2 while accepting multipart data, we have two sources for the name of the file:
"pythonfile"
in curl -Fpythonfile=@main.py https://feather/...
)Content-Disposition
header for that part (but this could be none)When x-feather-entrypoint
header is submitted for code
input.
Do we raise an error, use that filename to write to the temporary file, or ignore it?
IMO, writing to temporary file is internal behavior that the user shouldn't be concerned with. If they want a file with a particular name, they should use the multiple files format.
Then, we can either ignore it or raise an error.
This issue is to document non-obvious situations encountered while building that may take up time.