# Vector store is rejecting documented 'supported files'

**URL:** <https://community.openai.com/t/vector-store-is-rejecting-documented-supported-files/765007>\
**Category:** Bugs\
**Created:** [May 19, 2024, 4:10pm UTC](https://community.openai.com/t/vector-store-is-rejecting-documented-supported-files/765007 "2024-05-19T16:10:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fbomb111](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/fbomb111/32/262683_2.png) [@fbomb111](https://community.openai.com/u/fbomb111)\
**Post date:** [May 19, 2024, 4:10pm UTC](https://community.openai.com/t/vector-store-is-rejecting-documented-supported-files/765007/1 "2024-05-19T16:10:41Z")

</div>

Hi! I was experimenting with creating a vector store with code. I have a very minimal .sh file that prevented the store from being created:

```bash
#!/bin/bash

# Start the SSH service
service ssh start

# Start the application
flask run --host=0.0.0.0 --port=5000

```

and a sample of the implementation code:

```python
		file_paths = self._get_supported_files(my_files)
		file_streams = [open(path, "rb") for path in file_paths]

		vector_store = self.openai.beta.vector_stores.create(name="my_vector_store")

		file_batch = self.openai.beta.vector_stores.file_batches.upload_and_poll(
			vector_store_id=vector_store.id, files=file_streams
		)

```

Error message

{‘error’: {‘message’: ‘Invalid file format text/x-shellscript. Supported formats: “c”, “cpp”, “css”, “csv”, “docx”, “gif”, “html”, “java”, “jpeg”, “jpg”, “js”, “json”, “md”, “pdf”, “php”, “png”, “pptx”, “py”, “rb”, “tar”, “tex”, “ts”, “txt”, “webp”, “xlsx”, “xml”, “zip”’, ‘type’: ‘invalid\_request\_error’, ‘param’: None, ‘code’: None}}

Doc that says .sh is supported:  
[https://platform.openai.com/docs/assistants/tools/file-search/supported-files](https://platform.openai.com/docs/assistants/tools/file-search/supported-files)

Seems like the doc and what’s returned from the server are different.

---

<div class="post-metadata">

**Author:** ![\_j](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/_j/32/766292_2.png) [@\_j](https://community.openai.com/u/_j)\
**Post date:** [May 19, 2024, 4:36pm UTC](https://community.openai.com/t/vector-store-is-rejecting-documented-supported-files/765007/2 "2024-05-19T16:36:09Z")

</div>

`tar` works though. The mime type inspector doesn’t get inside the archive, if you can incorporate expanding into your code interpreter workflow.

Uploading to the vector store, this would be very poorly retrieved anyway. You could do what is required to have it work for file search based on AI query - make it into a document that has example question and answer about how to initialize flask.
